|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Watcher | |
---|---|
org.apache.zookeeper |
Uses of Watcher in org.apache.zookeeper |
---|
Methods in org.apache.zookeeper with parameters of type Watcher | |
---|---|
Stat |
ZooKeeper.exists(String path,
Watcher watcher)
Return the stat of the node of the given path. |
void |
ZooKeeper.exists(String path,
Watcher watcher,
AsyncCallback.StatCallback cb,
Object ctx)
The Asynchronous version of exists. |
List<String> |
ZooKeeper.getChildren(String path,
Watcher watcher)
Return the list of the children of the node of the given path. |
void |
ZooKeeper.getChildren(String path,
Watcher watcher,
AsyncCallback.ChildrenCallback cb,
Object ctx)
The Asynchronous version of getChildren. |
void |
ZooKeeper.getData(String path,
Watcher watcher,
AsyncCallback.DataCallback cb,
Object ctx)
The Asynchronous version of getData. |
byte[] |
ZooKeeper.getData(String path,
Watcher watcher,
Stat stat)
Return the data and the stat of the node of the given path. |
void |
ZooKeeper.register(Watcher watcher)
|
Constructors in org.apache.zookeeper with parameters of type Watcher | |
---|---|
ZooKeeper(String host,
int sessionTimeout,
Watcher watcher)
To create a client(ZooKeeper) object, the application needs to pass a string containing a comma separated list of host:port pairs, each corresponding to a ZooKeeper server. |
|
ZooKeeper(String host,
int sessionTimeout,
Watcher watcher,
long sessionId,
byte[] sessionPasswd)
To create a client(ZooKeeper) object, the application needs to pass a string containing a comma separated list of host:port pairs, each corresponding to a ZooKeeper server. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |