public static enum ApiRole.ZooKeeperServerMode extends Enum<ApiRole.ZooKeeperServerMode>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is nullCopyright © Cloudera, Inc. Released under Apache License, Version 2.0.