public static enum Slice.State extends Enum<Slice.State>
| Enum Constant and 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Slice.State | getState(String stateStr)Converts the state string to a State instance. | 
| String | toString() | 
| static Slice.State | valueOf(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. | 
public static final Slice.State ACTIVE
public static final Slice.State INACTIVE
public static final Slice.State CONSTRUCTION
public static final Slice.State RECOVERY
public static Slice.State[] values()
for (Slice.State c : Slice.State.values()) System.out.println(c);
public static Slice.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<Slice.State>public static Slice.State getState(String stateStr)
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.