public enum AllocationDecision extends java.lang.Enum<AllocationDecision> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Enum Constant and Description |
---|
ALLOCATION_DELAYED
The allocation decision has been delayed waiting for a replica with a shard copy
that left the cluster to rejoin.
|
AWAITING_INFO
Waiting on getting shard data from all nodes before making a decision
about where to allocate the shard.
|
NO
The shard cannot be allocated, which can happen for any number of reasons,
including the allocation deciders gave a NO decision for allocating.
|
NO_ATTEMPT
No attempt was made to allocate the shard
|
NO_VALID_SHARD_COPY
The shard was denied allocation because there were no valid shard copies
found for it amongst the nodes in the cluster.
|
THROTTLED
The allocation attempt was throttled for the shard.
|
WORSE_BALANCE
The shard could not be rebalanced to another node despite rebalancing
being allowed, because moving the shard to the other node would not form
a better cluster balance.
|
YES
The shard can be allocated to a node.
|
Modifier and Type | Method and Description |
---|---|
static AllocationDecision |
fromAllocationStatus(UnassignedInfo.AllocationStatus allocationStatus)
Gets an
AllocationDecision from a UnassignedInfo.AllocationStatus . |
static AllocationDecision |
fromDecisionType(Decision.Type type)
Gets an
AllocationDecision from a Decision.Type |
static AllocationDecision |
readFrom(StreamInput in) |
java.lang.String |
toString() |
static AllocationDecision |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AllocationDecision[] |
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 AllocationDecision YES
public static final AllocationDecision THROTTLED
public static final AllocationDecision NO
public static final AllocationDecision WORSE_BALANCE
public static final AllocationDecision AWAITING_INFO
public static final AllocationDecision ALLOCATION_DELAYED
public static final AllocationDecision NO_VALID_SHARD_COPY
public static final AllocationDecision NO_ATTEMPT
public static AllocationDecision[] values()
for (AllocationDecision c : AllocationDecision.values()) System.out.println(c);
public static AllocationDecision 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 AllocationDecision readFrom(StreamInput in) throws java.io.IOException
java.io.IOException
public static AllocationDecision fromAllocationStatus(UnassignedInfo.AllocationStatus allocationStatus)
AllocationDecision
from a UnassignedInfo.AllocationStatus
.public static AllocationDecision fromDecisionType(Decision.Type type)
AllocationDecision
from a Decision.Type
public java.lang.String toString()
toString
in class java.lang.Enum<AllocationDecision>