public static enum ZooKeeper.States extends java.lang.Enum<ZooKeeper.States>
Enum Constant and Description |
---|
ASSOCIATING |
AUTH_FAILED |
CLOSED |
CONNECTED |
CONNECTING |
Modifier and Type | Method and Description |
---|---|
boolean |
isAlive() |
static ZooKeeper.States |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ZooKeeper.States[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZooKeeper.States CONNECTING
public static final ZooKeeper.States ASSOCIATING
public static final ZooKeeper.States CONNECTED
public static final ZooKeeper.States CLOSED
public static final ZooKeeper.States AUTH_FAILED
public static ZooKeeper.States[] values()
for (ZooKeeper.States c : ZooKeeper.States.values()) System.out.println(c);
public static ZooKeeper.States 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 nullpublic boolean isAlive()
Copyright © 2016 The Apache Software Foundation