public static enum Slice.State extends Enum<Slice.State>
| 枚举常量和说明 |
|---|
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).
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Slice.State |
getState(String stateStr)
Converts the state string to a State instance.
|
String |
toString() |
static Slice.State |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Slice.State[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String toString()
toString 在类中 Enum<Slice.State>public static Slice.State getState(String stateStr)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.