public static enum Partition.State extends java.lang.Enum<Partition.State>
Enum Constant and Description |
---|
ACTIVE
The partition is active
|
INITIAL
The partition has been defined, but not enabled
|
MIGRATING
The partition owner is being updated.
|
REPLICATING
The partition replicas are being updated.
|
UNAVAILABLE
The partition is not active because all associated nodes have
failed, the node was taken off-line because it is in a
non-quorum state, or the node was restarted.
|
UPDATING
The partition definition is being updated.
|
Modifier and Type | Method and Description |
---|---|
static Partition.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Partition.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Partition.State INITIAL
public static final Partition.State ACTIVE
public static final Partition.State UPDATING
public static final Partition.State MIGRATING
public static final Partition.State REPLICATING
public static final Partition.State UNAVAILABLE
public static Partition.State[] values()
for (Partition.State c : Partition.State.values()) System.out.println(c);
public static Partition.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null