public static enum KetchReplica.State extends Enum<KetchReplica.State>
Enum Constant and Description |
---|
AHEAD
Replica's history contains the leader's history.
|
CURRENT
Replica matches the consensus.
|
DIVERGENT
Replica has a different (or unknown) history.
|
LAGGING
Replica is behind the consensus.
|
OFFLINE
Replica can not be contacted.
|
UNKNOWN
Leader has not yet contacted the replica.
|
Modifier and Type | Method and Description |
---|---|
static KetchReplica.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KetchReplica.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KetchReplica.State UNKNOWN
public static final KetchReplica.State LAGGING
public static final KetchReplica.State CURRENT
public static final KetchReplica.State DIVERGENT
public static final KetchReplica.State AHEAD
public static final KetchReplica.State OFFLINE
public static KetchReplica.State[] values()
for (KetchReplica.State c : KetchReplica.State.values()) System.out.println(c);
public static KetchReplica.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 nullCopyright © 2016 Eclipse JGit Project. All rights reserved.