Enum StorageVolume.VolumeState
java.lang.Object
java.lang.Enum<StorageVolume.VolumeState>
org.apache.hadoop.ozone.container.common.volume.StorageVolume.VolumeState
- All Implemented Interfaces:
Serializable,Comparable<StorageVolume.VolumeState>
- Enclosing class:
StorageVolume
VolumeState represents the different states a StorageVolume can be in.
NORMAL => Volume can be used for storage
FAILED => Volume has failed due and can no longer be used for
storing containers.
NON_EXISTENT => Volume Root dir does not exist
INCONSISTENT => Volume Root dir is not empty but VERSION file is
missing or Volume Root dir is not a directory
NOT_FORMATTED => Volume Root exists but not formatted(no VERSION file)
NOT_INITIALIZED => VERSION file exists but has not been verified for
correctness.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic StorageVolume.VolumeStateReturns the enum constant of this type with the specified name.static StorageVolume.VolumeState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NORMAL
-
FAILED
-
NON_EXISTENT
-
INCONSISTENT
-
NOT_FORMATTED
-
NOT_INITIALIZED
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-