public enum ZooKeeperServerMode extends Enum<ZooKeeperServerMode>
Modifier and Type | Class and Description |
---|---|
static class |
ZooKeeperServerMode.Adapter |
Enum Constant and Description |
---|
REPLICATED_FOLLOWER |
REPLICATED_LEADER |
REPLICATED_LEADER_ELECTION |
REPLICATED_OBSERVER |
STANDALONE |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static ZooKeeperServerMode |
fromValue(String text) |
String |
getValue() |
String |
toString() |
static ZooKeeperServerMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZooKeeperServerMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZooKeeperServerMode STANDALONE
public static final ZooKeeperServerMode REPLICATED_FOLLOWER
public static final ZooKeeperServerMode REPLICATED_LEADER
public static final ZooKeeperServerMode REPLICATED_LEADER_ELECTION
public static final ZooKeeperServerMode REPLICATED_OBSERVER
public static final ZooKeeperServerMode UNKNOWN
public static ZooKeeperServerMode[] values()
for (ZooKeeperServerMode c : ZooKeeperServerMode.values()) System.out.println(c);
public static 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 nullpublic String getValue()
public String toString()
toString
in class Enum<ZooKeeperServerMode>
public static ZooKeeperServerMode fromValue(String text)
Copyright © 2019. All rights reserved.