Enum Class UnassignedInfo.AllocationStatus
java.lang.Object
java.lang.Enum<UnassignedInfo.AllocationStatus>
org.elasticsearch.cluster.routing.UnassignedInfo.AllocationStatus
- All Implemented Interfaces:
Serializable
,Comparable<UnassignedInfo.AllocationStatus>
,Constable
,Writeable
- Enclosing class:
- UnassignedInfo
public static enum UnassignedInfo.AllocationStatus
extends Enum<UnassignedInfo.AllocationStatus>
implements Writeable
Captures the status of an unsuccessful allocation attempt for the shard,
causing it to remain in the unassigned state.
Note, ordering of the enum is important, make sure to add new values
at the end and handle version serialization properly.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Enum Constant Summary
Enum ConstantDescriptionThe shard was denied allocation to a node because the allocation deciders all returned a NO decisionThe allocation attempt was throttled on the shard by the allocation decidersAllocation decision has been delayedWaiting on getting shard data from all nodes before making a decision about where to allocate the shardNo allocation attempt has been made yetThe 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 -
Method Summary
Modifier and TypeMethodDescriptionfromDecision(Decision.Type decision)
readFrom(StreamInput in)
value()
Returns the enum constant of this class with the specified name.static UnassignedInfo.AllocationStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Enum Constant Details
-
DECIDERS_NO
The shard was denied allocation to a node because the allocation deciders all returned a NO decision -
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 -
DECIDERS_THROTTLED
The allocation attempt was throttled on the shard by the allocation deciders -
FETCHING_SHARD_DATA
Waiting on getting shard data from all nodes before making a decision about where to allocate the shard -
DELAYED_ALLOCATION
Allocation decision has been delayed -
NO_ATTEMPT
No allocation attempt has been made yet
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
readFrom
- Throws:
IOException
-
fromDecision
-
value
-