Enum Class StorageStatus.Code
- All Implemented Interfaces:
Serializable
,Comparable<StorageStatus.Code>
,java.lang.constant.Constable
- Enclosing class:
- StorageStatus
Enumeration of the possible states.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStorage is working normally, enough disk space, full read/write access.Storage failure due to an internal error, which requires a server restart.Storage resources start getting scarce.Storage failure that may be fixed without a server restart (e.g., no access for anyone due to a full disk, which may be solved at runtime if admin restores some disk space). -
Method Summary
Modifier and TypeMethodDescriptionstatic StorageStatus.Code
Returns the enum constant of this class with the specified name.static StorageStatus.Code[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AVAILABLE
Storage is working normally, enough disk space, full read/write access. -
LOCKED_DOWN
Storage resources start getting scarce. Restricted access due to low disk space, searches are allowed for everyone, otherwise full access to those with bypass lockdown privilege. -
UNAVAILABLE
Storage failure that may be fixed without a server restart (e.g., no access for anyone due to a full disk, which may be solved at runtime if admin restores some disk space). -
INTERNAL_ERROR
Storage failure due to an internal error, which requires a server restart.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-