Class StorageStatus
- java.lang.Object
-
- org.opends.server.backends.pluggable.spi.StorageStatus
-
public final class StorageStatus extends Object
Represents the current status of a storage with respect to its resources.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.i18n.LocalizableMessagegetReason()Returns the error message for non working states.booleanisLockedDown()Returns true if resources are getting scarce.booleanisUnusable()Returns true if no more resources are available.booleanisWorking()Returns true if state is normal.static StorageStatuslockedDown(org.forgerock.i18n.LocalizableMessage reason)Returns state for resources getting scarce.static StorageStatusunusable(org.forgerock.i18n.LocalizableMessage reason)Returns state for no more resources.static StorageStatusworking()Returns normal state.
-
-
-
Method Detail
-
working
public static StorageStatus working()
Returns normal state.- Returns:
- normal state
-
lockedDown
public static StorageStatus lockedDown(org.forgerock.i18n.LocalizableMessage reason)
Returns state for resources getting scarce.- Parameters:
reason- the message to forward- Returns:
- state for resources getting scarce
-
unusable
public static StorageStatus unusable(org.forgerock.i18n.LocalizableMessage reason)
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
-
isWorking
public boolean isWorking()
Returns true if state is normal.- Returns:
- true if state is normal
-
isUnusable
public boolean isUnusable()
Returns true if no more resources are available.- Returns:
- true if no more resources are available
-
getReason
public org.forgerock.i18n.LocalizableMessage getReason()
Returns the error message for non working states.- Returns:
- the error message for non working states
-
-