public interface ZkConnectionManager
| Modifier and Type | Method and Description |
|---|---|
ZooKeeperIface |
getClient()
Returns a valid ZooKeeperIface client that may be used to communicate
with the ZooKeeper cluster.
|
org.apache.zookeeper.ZooKeeper.States |
registerWatcher(org.apache.zookeeper.Watcher watcher)
Registers an additional watcher to receive ZooKeeper connection
event callbacks.
|
void |
shutdown()
Kills any active connections and shuts down the ZooKeeper connection
manager.
|
ZooKeeperIface getClient() throws InterruptedException
InterruptedExceptionorg.apache.zookeeper.ZooKeeper.States registerWatcher(org.apache.zookeeper.Watcher watcher)
watcher - void shutdown()
throws InterruptedException
InterruptedExceptionCopyright © 2012–2015 Facebook, Inc.. All rights reserved.