|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ApiRole.ZooKeeperServerMode>
com.cloudera.api.model.ApiRole.ZooKeeperServerMode
public static enum ApiRole.ZooKeeperServerMode
The state of the Zookeeper server.
| Enum Constant Summary | |
|---|---|
REPLICATED_FOLLOWER
The ZooKeeper Server is a Follower in a set of replicas. |
|
REPLICATED_LEADER
The ZooKeeper Server is a Leader in a set of replicas. |
|
REPLICATED_LEADER_ELECTION
The ZooKeeper Server is going through Leader election in a set of replicas. |
|
REPLICATED_OBSERVER
The ZooKeeper Server is an Observer in a set of replicas. |
|
STANDALONE
The ZooKeeper Server is a Standalone server. |
|
UNKNOWN
The status of the ZooKeeper Server could not be determined. |
|
| Method Summary | |
|---|---|
static ApiRole.ZooKeeperServerMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ApiRole.ZooKeeperServerMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ApiRole.ZooKeeperServerMode STANDALONE
public static final ApiRole.ZooKeeperServerMode REPLICATED_FOLLOWER
public static final ApiRole.ZooKeeperServerMode REPLICATED_LEADER
public static final ApiRole.ZooKeeperServerMode REPLICATED_LEADER_ELECTION
public static final ApiRole.ZooKeeperServerMode REPLICATED_OBSERVER
public static final ApiRole.ZooKeeperServerMode UNKNOWN
| Method Detail |
|---|
public static ApiRole.ZooKeeperServerMode[] values()
for (ApiRole.ZooKeeperServerMode c : ApiRole.ZooKeeperServerMode.values()) System.out.println(c);
public static ApiRole.ZooKeeperServerMode valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||