Enum UnassignedInfo.AllocationStatus

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<UnassignedInfo.AllocationStatus>, Writeable
    Enclosing class:

    public static enum UnassignedInfo.AllocationStatus
    extends java.lang.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.
    • Enum Constant Detail


        public static final UnassignedInfo.AllocationStatus DECIDERS_NO
        The shard was denied allocation to a node because the allocation deciders all returned a NO decision

        public static final UnassignedInfo.AllocationStatus 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

        public static final UnassignedInfo.AllocationStatus DECIDERS_THROTTLED
        The allocation attempt was throttled on the shard by the allocation deciders

        public static final UnassignedInfo.AllocationStatus FETCHING_SHARD_DATA
        Waiting on getting shard data from all nodes before making a decision about where to allocate the shard
    • Method Detail

      • values

        public static UnassignedInfo.AllocationStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (UnassignedInfo.AllocationStatus c : UnassignedInfo.AllocationStatus.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static UnassignedInfo.AllocationStatus valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • value

        public java.lang.String value()