public static enum RecoveryState.Type extends java.lang.Enum<RecoveryState.Type>
Enum Constant and Description |
---|
LOCAL_SHARDS |
PRIMARY_RELOCATION |
REPLICA |
SNAPSHOT |
STORE |
Modifier and Type | Method and Description |
---|---|
static RecoveryState.Type |
fromId(byte id) |
byte |
id() |
static RecoveryState.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RecoveryState.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecoveryState.Type STORE
public static final RecoveryState.Type SNAPSHOT
public static final RecoveryState.Type REPLICA
public static final RecoveryState.Type PRIMARY_RELOCATION
public static final RecoveryState.Type LOCAL_SHARDS
public static RecoveryState.Type[] values()
for (RecoveryState.Type c : RecoveryState.Type.values()) System.out.println(c);
public static RecoveryState.Type 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 byte id()
public static RecoveryState.Type fromId(byte id)