public static enum UnassignedInfo.AllocationStatus extends java.lang.Enum<UnassignedInfo.AllocationStatus> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Enum Constant and Description |
---|
DECIDERS_NO
The shard was denied allocation to a node because the allocation deciders all returned a NO decision
|
DECIDERS_THROTTLED
The allocation attempt was throttled on the shard by the allocation deciders
|
DELAYED_ALLOCATION
Allocation decision has been delayed
|
FETCHING_SHARD_DATA
Waiting on getting shard data from all nodes before making a decision about where to allocate the shard
|
NO_ATTEMPT
No allocation attempt has been made yet
|
NO_VALID_SHARD_COPY
The shard was denied allocation to a node because there were no valid shard copies found for it;
this can happen on node restart with gateway allocation
|
Modifier and Type | Method and Description |
---|---|
static UnassignedInfo.AllocationStatus |
fromDecision(Decision.Type decision) |
static UnassignedInfo.AllocationStatus |
readFrom(StreamInput in) |
java.lang.String |
value() |
static UnassignedInfo.AllocationStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnassignedInfo.AllocationStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public static final UnassignedInfo.AllocationStatus DECIDERS_NO
public static final UnassignedInfo.AllocationStatus NO_VALID_SHARD_COPY
public static final UnassignedInfo.AllocationStatus DECIDERS_THROTTLED
public static final UnassignedInfo.AllocationStatus FETCHING_SHARD_DATA
public static final UnassignedInfo.AllocationStatus DELAYED_ALLOCATION
public static final UnassignedInfo.AllocationStatus NO_ATTEMPT
public static UnassignedInfo.AllocationStatus[] values()
for (UnassignedInfo.AllocationStatus c : UnassignedInfo.AllocationStatus.values()) System.out.println(c);
public static UnassignedInfo.AllocationStatus 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 void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public static UnassignedInfo.AllocationStatus readFrom(StreamInput in) throws java.io.IOException
java.io.IOException
public static UnassignedInfo.AllocationStatus fromDecision(Decision.Type decision)
public java.lang.String value()