public interface ZooKeeperService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_ID
name of bundle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeClient()
close the client quietly.
|
ZooKeeper |
getClient()
get zookeeper client, create if it doesn't exist.
|
long |
getFailSafetyLevel() |
AnyMap |
getServerState() |
boolean |
isOperational() |
void |
registerWatcher(Watcher watcher)
register a watcher for ZooKeeper events.
|
void |
unregisterWatcher(Watcher watcher)
unregister a watcher for ZooKeeper events.
|
void |
waitForClientConnected()
wait until the zookeeper client is (re)connected.
|
static final java.lang.String BUNDLE_ID
ZooKeeper getClient()
throws java.io.IOException,
ClusterConfigException
java.io.IOException - error creating clientClusterConfigException - if the cluster configuration cannot be readvoid closeClient()
long getFailSafetyLevel()
AnyMap getServerState()
boolean isOperational()
void waitForClientConnected()
void registerWatcher(Watcher watcher)
void unregisterWatcher(Watcher watcher)