java.io.Serializable, java.lang.Comparable<ErasureCodingPolicyState>@Private public enum ErasureCodingPolicyState extends java.lang.Enum<ErasureCodingPolicyState>
| Enum Constant | Description |
|---|---|
DISABLED |
Policy is disabled.
|
ENABLED |
Policy is enabled.
|
REMOVED |
Policy is removed from the system.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ErasureCodingPolicyState |
fromValue(int v) |
|
int |
getValue() |
|
static ErasureCodingPolicyState |
read(java.io.DataInput in) |
Read from in.
|
static ErasureCodingPolicyState |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ErasureCodingPolicyState[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
write(java.io.DataOutput out) |
Write to out.
|
public static final ErasureCodingPolicyState DISABLED
public static final ErasureCodingPolicyState ENABLED
public static final ErasureCodingPolicyState REMOVED
public static ErasureCodingPolicyState[] values()
for (ErasureCodingPolicyState c : ErasureCodingPolicyState.values()) System.out.println(c);
public static ErasureCodingPolicyState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()
public static ErasureCodingPolicyState fromValue(int v)
public static ErasureCodingPolicyState read(java.io.DataInput in) throws java.io.IOException
java.io.IOExceptionpublic void write(java.io.DataOutput out)
throws java.io.IOException
java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.