public static enum ClusterInfo.MemberState extends java.lang.Enum<ClusterInfo.MemberState>
| Enum Constant and Description |
|---|
CATCHING_UP |
CLONE |
DISCOVER_LEADER |
FOLLOWER |
INITIALIZING |
LEADER |
MANAGER |
PRE_LEADER |
PRE_READ_ONLY_REPLICA |
PRE_REPLICA |
READ_ONLY_LEADERLESS |
READ_ONLY_REPLICA |
RESIGNING_LEADER |
SHUT_DOWN |
SHUTTING_DOWN |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
static ClusterInfo.MemberState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClusterInfo.MemberState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClusterInfo.MemberState INITIALIZING
public static final ClusterInfo.MemberState DISCOVER_LEADER
public static final ClusterInfo.MemberState UNKNOWN
public static final ClusterInfo.MemberState PRE_REPLICA
public static final ClusterInfo.MemberState CATCHING_UP
public static final ClusterInfo.MemberState CLONE
public static final ClusterInfo.MemberState FOLLOWER
public static final ClusterInfo.MemberState PRE_LEADER
public static final ClusterInfo.MemberState LEADER
public static final ClusterInfo.MemberState MANAGER
public static final ClusterInfo.MemberState SHUTTING_DOWN
public static final ClusterInfo.MemberState SHUT_DOWN
public static final ClusterInfo.MemberState READ_ONLY_LEADERLESS
public static final ClusterInfo.MemberState PRE_READ_ONLY_REPLICA
public static final ClusterInfo.MemberState READ_ONLY_REPLICA
public static final ClusterInfo.MemberState RESIGNING_LEADER
public static ClusterInfo.MemberState[] values()
for (ClusterInfo.MemberState c : ClusterInfo.MemberState.values()) System.out.println(c);
public static ClusterInfo.MemberState 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