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.booleanReturns true if resources are getting scarce.booleanReturns true if no more resources are available.static StorageStatuslockedDown(LocalizableMessage reason) Returns state for resources getting scarce.static StorageStatusunusable(LocalizableMessage reason) Returns state for no more resources.static StorageStatusworking()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
-