Added Methods |
String create(String, byte[], List, CreateMode, Stat)
|
Create a node with the given path and returns the Stat of that node. |
void create(String, byte[], List, CreateMode, Create2Callback, Object)
|
The asynchronous version of create. |
ZKWatchManager defaultWatchManager()
|
|
List getChildren(String, boolean, Stat)
|
For the given znode path return the stat and children list. |
List getChildren(String, Watcher, Stat)
|
For the given znode path return the stat and children list. |
void getChildren(String, boolean, Children2Callback, Object)
|
The asynchronous version of getChildren. |
void getChildren(String, Watcher, Children2Callback, Object)
|
The asynchronous version of getChildren. |
byte[] getConfig(boolean, Stat)
|
Return the last committed configuration (as known to the server to which the client is connected) and the stat of the configuration. |
byte[] getConfig(Watcher, Stat)
|
Return the last committed configuration (as known to the server to which the client is connected) and the stat of the configuration. |
void getConfig(boolean, DataCallback, Object)
|
The Asynchronous version of getConfig. |
void getConfig(Watcher, DataCallback, Object)
|
The asynchronous version of getConfig. |
ZooKeeperSaslClient getSaslClient()
|
|
int getSessionTimeout()
|
The negotiated session timeout for this ZooKeeper client instance. |
Testable getTestable()
|
|
List multi(Iterable )
|
Executes multiple ZooKeeper operations or none of them. |
void multi(Iterable, MultiCallback, Object)
|
The asynchronous version of multi. |
List multiInternal(MultiTransactionRecord )
|
|
void multiInternal(MultiTransactionRecord, MultiCallback, Object)
|
|
byte[] reconfig(String, String, String, long, Stat)
|
Reconfigure - add/remove servers. |
byte[] reconfig(List, List, List, long, Stat)
|
Convenience wrapper around reconfig that takes Lists of strings instead of comma-separated servers. |
void reconfig(String, String, String, long, DataCallback, Object)
|
The Asynchronous version of reconfig. |
void reconfig(List, List, List, long, DataCallback, Object)
|
Convenience wrapper around asynchronous reconfig that takes Lists of strings instead of comma-separated servers. |
void removeAllWatches(String, WatcherType, boolean)
|
For the given znode path removes all the registered watchers of given watcherType. |
void removeAllWatches(String, WatcherType, boolean, VoidCallback, Object)
|
The asynchronous version of removeAllWatches. |
void removeWatches(String, Watcher, WatcherType, boolean)
|
For the given znode path removes the specified watcher of given watcherType. |
void removeWatches(String, Watcher, WatcherType, boolean, VoidCallback, Object)
|
The asynchronous version of removeWatches. |
SocketAddress testableLocalSocketAddress()
|
Returns the local address to which the socket is bound. |
SocketAddress testableRemoteSocketAddress()
|
Returns the address to which the socket is connected. |
boolean testableWaitForShutdown(int )
|
Wait up to wait milliseconds for the underlying threads to shutdown. |
String toString()
|
String representation of this ZooKeeper client. |
Transaction transaction()
|
A Transaction is a thin wrapper on the #multi method which provides a builder object that can be used to construct and commit an atomic set of operations. |
void updateServerList(String )
|
This function allows a client to update the connection string by providing a new comma separated list of host:port pairs each corresponding to a ZooKeeper server. |