Enum UnassignedInfo.Reason

java.lang.Object
java.lang.Enum<UnassignedInfo.Reason>
org.elasticsearch.cluster.routing.UnassignedInfo.Reason
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UnassignedInfo.Reason>, java.lang.constant.Constable
Enclosing class:
UnassignedInfo

public static enum UnassignedInfo.Reason
extends java.lang.Enum<UnassignedInfo.Reason>
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

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    ALLOCATION_FAILED
    Unassigned as a result of a failed allocation of the shard.
    CLUSTER_RECOVERED
    Unassigned as a result of a full cluster recovery.
    DANGLING_INDEX_IMPORTED
    Unassigned as a result of importing a dangling index.
    EXISTING_INDEX_RESTORED
    Unassigned as a result of restoring into a closed index.
    FORCED_EMPTY_PRIMARY
    Unassigned after forcing an empty primary
    INDEX_CLOSED
    Unassigned as a result of closing an index.
    INDEX_CREATED
    Unassigned as a result of an API creation of an index.
    INDEX_REOPENED
    Unassigned as a result of opening a closed index.
    MANUAL_ALLOCATION
    Forced manually to allocate
    NEW_INDEX_RESTORED
    Unassigned as a result of restoring into a new index.
    NODE_LEFT
    Unassigned as a result of the node hosting it leaving the cluster.
    PRIMARY_FAILED
    Unassigned as a result of a failed primary while the replica was initializing.
    REALLOCATED_REPLICA
    A better replica location is identified and causes the existing replica allocation to be cancelled.
    REINITIALIZED
    When a shard moves from started back to initializing.
    REPLICA_ADDED
    Unassigned as a result of explicit addition of a replica.
    REROUTE_CANCELLED
    Unassigned as a result of explicit cancel reroute command.
  • Method Summary

    Modifier and Type Method Description
    static UnassignedInfo.Reason valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static UnassignedInfo.Reason[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait