|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ZooKeeperService
Interface of ZooKeeper management service.
| Field Summary | |
|---|---|
static java.lang.String |
BUNDLE_ID
name of bundle. |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
static final java.lang.String BUNDLE_ID
| Method Detail |
|---|
ZooKeeper getClient()
throws java.io.IOException,
ClusterConfigException
java.io.IOException - error creating client
ClusterConfigException - if the cluster configuration cannot be readvoid closeClient()
long getFailSafetyLevel()
AnyMap getServerState()
boolean isOperational()
void waitForClientConnected()
void registerWatcher(Watcher watcher)
void unregisterWatcher(Watcher watcher)
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||