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 enumEnumeration of the possible states. -
Method Summary
Modifier and TypeMethodDescriptionstatic StorageStatusReturns available status.getCode()Returns the code of this status.Returns the error message for non available statuses.static StorageStatusinternalError(LocalizableMessage reason) Returns internal error status.static StorageStatuslockedDown(LocalizableMessage reason) Returns state for resources getting scarce.static StorageStatusunavailable(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
-