Class StorageStatus
java.lang.Object
org.opends.server.backends.pluggable.spi.StorageStatus
Represents the current status of a storage with respect to its resources.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enumeration of the possible states. -
Method Summary
Modifier and TypeMethodDescriptionstatic StorageStatus
Returns available status.getCode()
Returns the code of this status.Returns the error message for non available statuses.static StorageStatus
internalError
(LocalizableMessage reason) Returns internal error status.static StorageStatus
lockedDown
(LocalizableMessage reason) Returns state for resources getting scarce.static StorageStatus
unavailable
(LocalizableMessage reason) Returns unavailable status.
-
Method Details
-
available
Returns available status.- Returns:
- available status
-
lockedDown
Returns state for resources getting scarce.- Parameters:
reason
- the message to forward- Returns:
- state for resources getting scarce
-
internalError
Returns internal error status.- Parameters:
reason
- the message to forward- Returns:
- state for server having an internal error
-
getCode
Returns the code of this status.- Returns:
- the code of this status
-
getReason
Returns the error message for non available statuses.- Returns:
- the error message for non available statuses
-