Enum Class ErasureCodingPolicyState

java.lang.Object
java.lang.Enum<ErasureCodingPolicyState>
org.apache.hadoop.hdfs.protocol.ErasureCodingPolicyState
All Implemented Interfaces:
Serializable, Comparable<ErasureCodingPolicyState>, Constable

@Private public enum ErasureCodingPolicyState extends Enum<ErasureCodingPolicyState>
Value denotes the possible states of an ErasureCodingPolicy.
  • Enum Constant Details

    • DISABLED

      public static final ErasureCodingPolicyState DISABLED
      Policy is disabled. It's policy default state.
    • ENABLED

      public static final ErasureCodingPolicyState ENABLED
      Policy is enabled. It can be applied to directory and file.
    • REMOVED

      public static final ErasureCodingPolicyState 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

      public static ErasureCodingPolicyState[] 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

      public static ErasureCodingPolicyState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
    • fromValue

      public static ErasureCodingPolicyState fromValue(int v)
    • read

      public static ErasureCodingPolicyState read(DataInput in) throws IOException
      Read from in.
      Throws:
      IOException
    • write

      public void write(DataOutput out) throws IOException
      Write to out.
      Throws:
      IOException