Package org.apache.hadoop.hdfs.protocol
Enum Class ErasureCodingPolicyState
- All Implemented Interfaces:
Serializable,Comparable<ErasureCodingPolicyState>,Constable
Value denotes the possible states of an ErasureCodingPolicy.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ErasureCodingPolicyStatefromValue(int v) intgetValue()static ErasureCodingPolicyStateRead from in.static ErasureCodingPolicyStateReturns the enum constant of this class with the specified name.static ErasureCodingPolicyState[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwrite(DataOutput out) Write to out.
-
Enum Constant Details
-
DISABLED
Policy is disabled. It's policy default state. -
ENABLED
Policy is enabled. It can be applied to directory and file. -
REMOVED
Policy is removed from the system. Due to there are potential files use this policy, it cannot be deleted from system immediately. A removed policy can be re-enabled later.
-
-
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
-
getValue
public int getValue() -
fromValue
-
read
Read from in.- Throws:
IOException
-
write
Write to out.- Throws:
IOException
-