public final class StorageStatus extends Object
Modifier and Type | Method and Description |
---|---|
LocalizableMessage |
getReason()
Returns the error message for non working states.
|
boolean |
isLockedDown()
Returns true if resources are getting scarce.
|
boolean |
isUnusable()
Returns true if no more resources are available.
|
boolean |
isWorking()
Returns true if state is normal.
|
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.
|
public static StorageStatus working()
public static StorageStatus lockedDown(LocalizableMessage reason)
reason
- the message to forwardpublic static StorageStatus unusable(LocalizableMessage reason)
reason
- the message to forwardpublic boolean isLockedDown()
public boolean isWorking()
public boolean isUnusable()
public LocalizableMessage getReason()
Copyright 2010-2022 ForgeRock AS.