com.cloudera.api.model
Enum ApiRole.ZooKeeperServerMode

java.lang.Object
  extended by java.lang.Enum<ApiRole.ZooKeeperServerMode>
      extended by com.cloudera.api.model.ApiRole.ZooKeeperServerMode
All Implemented Interfaces:
Serializable, Comparable<ApiRole.ZooKeeperServerMode>
Enclosing class:
ApiRole

public static enum ApiRole.ZooKeeperServerMode
extends 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

STANDALONE

public static final ApiRole.ZooKeeperServerMode STANDALONE
The ZooKeeper Server is a Standalone server.


REPLICATED_FOLLOWER

public static final ApiRole.ZooKeeperServerMode REPLICATED_FOLLOWER
The ZooKeeper Server is a Follower in a set of replicas.


REPLICATED_LEADER

public static final ApiRole.ZooKeeperServerMode REPLICATED_LEADER
The ZooKeeper Server is a Leader in a set of replicas.


REPLICATED_LEADER_ELECTION

public static final ApiRole.ZooKeeperServerMode REPLICATED_LEADER_ELECTION
The ZooKeeper Server is going through Leader election in a set of replicas.


REPLICATED_OBSERVER

public static final ApiRole.ZooKeeperServerMode REPLICATED_OBSERVER
The ZooKeeper Server is an Observer in a set of replicas.


UNKNOWN

public static final ApiRole.ZooKeeperServerMode UNKNOWN
The status of the ZooKeeper Server could not be determined.

Method Detail

values

public static ApiRole.ZooKeeperServerMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ApiRole.ZooKeeperServerMode c : ApiRole.ZooKeeperServerMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ApiRole.ZooKeeperServerMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.