public enum ShardRoutingState extends java.lang.Enum<ShardRoutingState>
ShardRouting
as defined by the
cluster.Enum Constant and Description |
---|
INITIALIZING
The shard is initializing (probably recovering from either a peer shard
or gateway).
|
RELOCATING
The shard is in the process being relocated.
|
STARTED
The shard is started.
|
UNASSIGNED
The shard is not assigned to any node.
|
Modifier and Type | Method and Description |
---|---|
static ShardRoutingState |
fromValue(byte value) |
byte |
value()
Byte value of this
ShardRoutingState |
static ShardRoutingState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ShardRoutingState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShardRoutingState UNASSIGNED
public static final ShardRoutingState INITIALIZING
public static final ShardRoutingState STARTED
public static final ShardRoutingState RELOCATING
public static ShardRoutingState[] values()
for (ShardRoutingState c : ShardRoutingState.values()) System.out.println(c);
public static ShardRoutingState 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 value()
ShardRoutingState
ShardRoutingState
public static ShardRoutingState fromValue(byte value)