Package org.apache.solr.common.cloud
Enum Slice.State
- java.lang.Object
- 
- java.lang.Enum<Slice.State>
- 
- org.apache.solr.common.cloud.Slice.State
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Slice.State>
 - Enclosing class:
- Slice
 
 public static enum Slice.State extends Enum<Slice.State> The slice's state.
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description ACTIVEThe normal/default state of a shard.CONSTRUCTIONWhen a shard is split, the new sub-shards are put in that state while the split operation is in progress.INACTIVEA shard is put in that state after it has been successfully split.RECOVERYSub-shards of a split shard are put in that state, when they need to create replicas in order to meet the collection's replication factor.RECOVERY_FAILEDSub-shards of a split shard are put in that state when the split is deemed failed by the overseer even though all replicas are active because either the leader node is no longer live or has a different ephemeral owner (zk session id).
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Slice.StategetState(String stateStr)Converts the state string to a State instance.StringtoString()static Slice.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static Slice.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
ACTIVEpublic static final Slice.State ACTIVE The normal/default state of a shard.
 - 
INACTIVEpublic static final Slice.State INACTIVE A shard is put in that state after it has been successfully split. See the reference guide for more details.
 - 
CONSTRUCTIONpublic static final Slice.State CONSTRUCTION When a shard is split, the new sub-shards are put in that state while the split operation is in progress. It's also used when the shard is undergoing data restoration. A shard in this state still receives update requests from the parent shard leader, however does not participate in distributed search.
 - 
RECOVERYpublic static final Slice.State RECOVERY Sub-shards of a split shard are put in that state, when they need to create replicas in order to meet the collection's replication factor. A shard in that state still receives update requests from the parent shard leader, however does not participate in distributed search.
 - 
RECOVERY_FAILEDpublic static final Slice.State RECOVERY_FAILED Sub-shards of a split shard are put in that state when the split is deemed failed by the overseer even though all replicas are active because either the leader node is no longer live or has a different ephemeral owner (zk session id). Such conditions can potentially lead to data loss. See SOLR-9438 for details. A shard in that state will neither receive update requests from the parent shard leader, nor participate in distributed search.
 
- 
 - 
Method Detail- 
valuespublic static Slice.State[] 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 (Slice.State c : Slice.State.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static Slice.State 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 name
- NullPointerException- if the argument is null
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- Enum<Slice.State>
 
 - 
getStatepublic static Slice.State getState(String stateStr) Converts the state string to a State instance.
 
- 
 
-