Enum Class UnassignedInfo.Reason
- All Implemented Interfaces:
Serializable
,Comparable<UnassignedInfo.Reason>
,Constable
- Enclosing class:
- UnassignedInfo
Reason why the shard is in 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>>
-
Enum Constant Summary
Enum ConstantDescriptionUnassigned as a result of a failed allocation of the shard.Unassigned as a result of a full cluster recovery.Unassigned as a result of importing a dangling index.Unassigned as a result of restoring into a closed index.Unassigned after forcing an empty primaryUnassigned as a result of closing an index.Unassigned as a result of an API creation of an index.Unassigned as a result of opening a closed index.Forced manually to allocateUnassigned as a result of restoring into a new index.Unassigned as a result of the node hosting it leaving the cluster.Unassigned as a result of a failed primary while the replica was initializing.A better replica location is identified and causes the existing replica allocation to be cancelled.When a shard moves from started back to initializing.Unassigned as a result of explicit addition of a replica.Unassigned as a result of explicit cancel reroute command. -
Method Summary
Modifier and TypeMethodDescriptionstatic UnassignedInfo.Reason
Returns the enum constant of this class with the specified name.static UnassignedInfo.Reason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INDEX_CREATED
Unassigned as a result of an API creation of an index. -
CLUSTER_RECOVERED
Unassigned as a result of a full cluster recovery. -
INDEX_REOPENED
Unassigned as a result of opening a closed index. -
DANGLING_INDEX_IMPORTED
Unassigned as a result of importing a dangling index. -
NEW_INDEX_RESTORED
Unassigned as a result of restoring into a new index. -
EXISTING_INDEX_RESTORED
Unassigned as a result of restoring into a closed index. -
REPLICA_ADDED
Unassigned as a result of explicit addition of a replica. -
ALLOCATION_FAILED
Unassigned as a result of a failed allocation of the shard. -
NODE_LEFT
Unassigned as a result of the node hosting it leaving the cluster. -
REROUTE_CANCELLED
Unassigned as a result of explicit cancel reroute command. -
REINITIALIZED
When a shard moves from started back to initializing. -
REALLOCATED_REPLICA
A better replica location is identified and causes the existing replica allocation to be cancelled. -
PRIMARY_FAILED
Unassigned as a result of a failed primary while the replica was initializing. -
FORCED_EMPTY_PRIMARY
Unassigned after forcing an empty primary -
MANUAL_ALLOCATION
Forced manually to allocate -
INDEX_CLOSED
Unassigned as a result of closing an index.
-
-
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
-