public static enum Slice.State extends Enum<Slice.State>
Enum Constant and Description |
---|
ACTIVE
The normal/default state of a shard.
|
CONSTRUCTION
When a shard is split, the new sub-shards are put in that state while the
split operation is in progress.
|
INACTIVE
A shard is put in that state after it has been successfully split.
|
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.
|
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).
|
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 final Slice.State RECOVERY_FAILED
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-2020 Apache Software Foundation. All Rights Reserved.