public static enum MonitoringZookeeperConnection.State extends Enum<MonitoringZookeeperConnection.State>
MonitoringZookeeperConnection class. Initially starting in state CONNECTING, once
connected to the ZooKeeper quorum this class will generally be in the LIVE state, possibly falling
back to the CONNECTING state when the connection to the quorum is lost, and returning to
LIVE upon reconnection. State CLOSED is entered when this class is finally closed and cannot
be reopened (implying a shutdown of the application).| Enum Constant and Description |
|---|
CLOSED
Shutting down.
|
CONNECTING
(Re)connecting to the ZooKeeper quorum.
|
LIVE
Connected to the ZooKeeper quorum.
|
| Modifier and Type | Method and Description |
|---|---|
static MonitoringZookeeperConnection.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MonitoringZookeeperConnection.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MonitoringZookeeperConnection.State CONNECTING
public static final MonitoringZookeeperConnection.State LIVE
public static final MonitoringZookeeperConnection.State CLOSED
public static MonitoringZookeeperConnection.State[] values()
for (MonitoringZookeeperConnection.State c : MonitoringZookeeperConnection.State.values()) System.out.println(c);
public static MonitoringZookeeperConnection.State 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 © 2015–2018 Lable. All rights reserved.