Enum ClusterRebalanceAllocationDecider.ClusterRebalanceType
java.lang.Object
java.lang.Enum<ClusterRebalanceAllocationDecider.ClusterRebalanceType>
org.elasticsearch.cluster.routing.allocation.decider.ClusterRebalanceAllocationDecider.ClusterRebalanceType
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClusterRebalanceAllocationDecider.ClusterRebalanceType>
,java.lang.constant.Constable
- Enclosing class:
- ClusterRebalanceAllocationDecider
public static enum ClusterRebalanceAllocationDecider.ClusterRebalanceType extends java.lang.Enum<ClusterRebalanceAllocationDecider.ClusterRebalanceType>
An enum representation for the configured re-balance type.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
Re-balancing is allowed once a shard replication group is activeINDICES_ALL_ACTIVE
Re-balancing is allowed only once all shards on all indices are active.INDICES_PRIMARIES_ACTIVE
Re-balancing is allowed only once all primary shards on all indices are active. -
Method Summary
Modifier and Type Method Description static ClusterRebalanceAllocationDecider.ClusterRebalanceType
parseString(java.lang.String typeString)
java.lang.String
toString()
static ClusterRebalanceAllocationDecider.ClusterRebalanceType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ClusterRebalanceAllocationDecider.ClusterRebalanceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Re-balancing is allowed once a shard replication group is active -
INDICES_PRIMARIES_ACTIVE
Re-balancing is allowed only once all primary shards on all indices are active. -
INDICES_ALL_ACTIVE
Re-balancing is allowed only once all shards on all indices are active.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClusterRebalanceAllocationDecider.ClusterRebalanceType 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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
parseString
public static ClusterRebalanceAllocationDecider.ClusterRebalanceType parseString(java.lang.String typeString) -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Enum<ClusterRebalanceAllocationDecider.ClusterRebalanceType>
-