java.io.Serializable
, java.lang.Comparable<QuorumPeer.ServerState>
public static enum QuorumPeer.ServerState extends java.lang.Enum<QuorumPeer.ServerState>
Modifier and Type | Method | Description |
---|---|---|
static QuorumPeer.ServerState |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static QuorumPeer.ServerState[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QuorumPeer.ServerState LOOKING
public static final QuorumPeer.ServerState FOLLOWING
public static final QuorumPeer.ServerState LEADING
public static final QuorumPeer.ServerState OBSERVING
public static QuorumPeer.ServerState[] values()
for (QuorumPeer.ServerState c : QuorumPeer.ServerState.values()) System.out.println(c);
public static QuorumPeer.ServerState 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 nullCopyright © 2018 The Apache Software Foundation