java.io.Serializable
, java.lang.Comparable<IndexShardState>
public enum IndexShardState extends java.lang.Enum<IndexShardState>
Enum Constant | Description |
---|---|
CLOSED |
|
CREATED |
|
POST_RECOVERY |
|
RECOVERING |
|
STARTED |
Modifier and Type | Method | Description |
---|---|---|
static IndexShardState |
fromId(byte id) |
|
byte |
id() |
|
static IndexShardState |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static IndexShardState[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexShardState CREATED
public static final IndexShardState RECOVERING
public static final IndexShardState POST_RECOVERY
public static final IndexShardState STARTED
public static final IndexShardState CLOSED
public static IndexShardState[] values()
for (IndexShardState c : IndexShardState.values()) System.out.println(c);
public static IndexShardState 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 IndexShardState fromId(byte id)