Package | Description |
---|---|
org.apache.zookeeper |
Modifier and Type | Method | Description |
---|---|---|
java.util.Set<Watcher> |
ClientWatchManager.materialize(Watcher.Event.KeeperState state,
Watcher.Event.EventType type,
java.lang.String path) |
Return a set of watchers that should be notified of the event.
|
Modifier and Type | Method | Description |
---|---|---|
Stat |
ZooKeeper.exists(java.lang.String path,
Watcher watcher) |
Return the stat of the node of the given path.
|
void |
ZooKeeper.exists(java.lang.String path,
Watcher watcher,
AsyncCallback.StatCallback cb,
java.lang.Object ctx) |
The asynchronous version of exists.
|
java.util.List<java.lang.String> |
ZooKeeper.getChildren(java.lang.String path,
Watcher watcher) |
Return the list of the children of the node of the given path.
|
void |
ZooKeeper.getChildren(java.lang.String path,
Watcher watcher,
AsyncCallback.Children2Callback cb,
java.lang.Object ctx) |
The asynchronous version of getChildren.
|
void |
ZooKeeper.getChildren(java.lang.String path,
Watcher watcher,
AsyncCallback.ChildrenCallback cb,
java.lang.Object ctx) |
The asynchronous version of getChildren.
|
java.util.List<java.lang.String> |
ZooKeeper.getChildren(java.lang.String path,
Watcher watcher,
Stat stat) |
For the given znode path return the stat and children list.
|
void |
ZooKeeper.getData(java.lang.String path,
Watcher watcher,
AsyncCallback.DataCallback cb,
java.lang.Object ctx) |
The asynchronous version of getData.
|
byte[] |
ZooKeeper.getData(java.lang.String path,
Watcher watcher,
Stat stat) |
Return the data and the stat of the node of the given path.
|
void |
ZooKeeper.register(Watcher watcher) |
Specify the default watcher for the connection (overrides the one
specified during construction).
|
Constructor | Description |
---|---|
ZooKeeper(java.lang.String connectString,
int sessionTimeout,
Watcher watcher) |
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.
|
ZooKeeper(java.lang.String connectString,
int sessionTimeout,
Watcher watcher,
boolean canBeReadOnly) |
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.
|
ZooKeeper(java.lang.String connectString,
int sessionTimeout,
Watcher watcher,
long sessionId,
byte[] sessionPasswd) |
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.
|
ZooKeeper(java.lang.String connectString,
int sessionTimeout,
Watcher watcher,
long sessionId,
byte[] sessionPasswd,
boolean canBeReadOnly) |
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.
|
Copyright © 2018 The Apache Software Foundation