Package org.apache.solr.cluster
Enum Shard.ShardState
- java.lang.Object
-
- java.lang.Enum<Shard.ShardState>
-
- org.apache.solr.cluster.Shard.ShardState
-
- All Implemented Interfaces:
Serializable
,Comparable<Shard.ShardState>
- Enclosing interface:
- Shard
public static enum Shard.ShardState extends Enum<Shard.ShardState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE
CONSTRUCTION
INACTIVE
RECOVERY
RECOVERY_FAILED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Shard.ShardState
valueOf(String name)
Returns the enum constant of this type with the specified name.static Shard.ShardState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final Shard.ShardState ACTIVE
-
INACTIVE
public static final Shard.ShardState INACTIVE
-
CONSTRUCTION
public static final Shard.ShardState CONSTRUCTION
-
RECOVERY
public static final Shard.ShardState RECOVERY
-
RECOVERY_FAILED
public static final Shard.ShardState RECOVERY_FAILED
-
-
Method Detail
-
values
public static Shard.ShardState[] 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 (Shard.ShardState c : Shard.ShardState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Shard.ShardState valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-