Implements a simple standalone ZooKeeperServer.
To create a ZooKeeper client object, the application needs to pass a
connection string containing a comma separated list of host:port pairs,
each corresponding to a ZooKeeper server.
Session establishment is asynchronous. This constructor will initiate
connection to the server and return immediately - potentially (usually)
before the session is fully established. The watcher argument specifies
the watcher that will be notified of any changes in state. This
notification can come at any point before or after the constructor call
has returned.
The instantiated ZooKeeper client object will pick an arbitrary server
from the connectString and attempt to connect to it. If establishment of
the connection fails, another server in the connect string will be tried
(the order is non-deterministic, as we random shuffle the list), until a
connection is established. The client will continue attempts until the
session is explicitly closed.
Implements a simple standalone ZooKeeperServer. To create a ZooKeeper client object, the application needs to pass a connection string containing a comma separated list of host:port pairs, each corresponding to a ZooKeeper server.
Session establishment is asynchronous. This constructor will initiate connection to the server and return immediately - potentially (usually) before the session is fully established. The watcher argument specifies the watcher that will be notified of any changes in state. This notification can come at any point before or after the constructor call has returned.
The instantiated ZooKeeper client object will pick an arbitrary server from the connectString and attempt to connect to it. If establishment of the connection fails, another server in the connect string will be tried (the order is non-deterministic, as we random shuffle the list), until a connection is established. The client will continue attempts until the session is explicitly closed.