Class StorageStatus
java.lang.Object
org.opends.server.backends.pluggable.spi.StorageStatus
Represents the current status of a storage with respect to its resources.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the error message for non working states.boolean
Returns true if resources are getting scarce.boolean
Returns true if no more resources are available.static StorageStatus
lockedDown
(LocalizableMessage reason) Returns state for resources getting scarce.static StorageStatus
unusable
(LocalizableMessage reason) Returns state for no more resources.static StorageStatus
working()
Returns normal state.
-
Method Details
-
working
Returns normal state.- Returns:
- normal state
-
lockedDown
Returns state for resources getting scarce.- Parameters:
reason
- the message to forward- Returns:
- state for resources getting scarce
-
unusable
Returns state for no more resources.- Parameters:
reason
- the message to forward- Returns:
- state for no more resources
-
isLockedDown
public boolean isLockedDown()Returns true if resources are getting scarce.- Returns:
- true if resources are getting scarce
-
isUnusable
public boolean isUnusable()Returns true if no more resources are available.- Returns:
- true if no more resources are available
-
getReason
Returns the error message for non working states.- Returns:
- the error message for non working states
-