Uses of Interface
org.apache.zookeeper.Watcher
-
Packages that use Watcher Package Description org.apache.zookeeper org.apache.zookeeper.server ZooKeeper server theory of operationorg.apache.zookeeper.server.upgrade -
-
Uses of Watcher in org.apache.zookeeper
Methods in org.apache.zookeeper that return types with arguments of type Watcher 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.Methods in org.apache.zookeeper with parameters of type Watcher Modifier and Type Method Description StatZooKeeper. exists(java.lang.String path, Watcher watcher)Return the stat of the node of the given path.voidZooKeeper. 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.voidZooKeeper. getChildren(java.lang.String path, Watcher watcher, AsyncCallback.Children2Callback cb, java.lang.Object ctx)The asynchronous version of getChildren.voidZooKeeper. 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.voidZooKeeper. 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.voidZooKeeper. register(Watcher watcher)Specify the default watcher for the connection (overrides the one specified during construction).Constructors in org.apache.zookeeper with parameters of type Watcher 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. -
Uses of Watcher in org.apache.zookeeper.server
Classes in org.apache.zookeeper.server that implement Watcher Modifier and Type Class Description classNettyServerCnxnclassNIOServerCnxnThis class handles communication with clients using NIO.classServerCnxnInterface to a Server connection - represents a connection from a client to the server.Methods in org.apache.zookeeper.server that return types with arguments of type Watcher Modifier and Type Method Description java.util.Set<Watcher>WatchManager. triggerWatch(java.lang.String path, Watcher.Event.EventType type)java.util.Set<Watcher>WatchManager. triggerWatch(java.lang.String path, Watcher.Event.EventType type, java.util.Set<Watcher> supress)Methods in org.apache.zookeeper.server with parameters of type Watcher Modifier and Type Method Description voidWatchManager. addWatch(java.lang.String path, Watcher watcher)java.util.List<java.lang.String>DataTree. getChildren(java.lang.String path, Stat stat, Watcher watcher)java.util.List<java.lang.String>ZKDatabase. getChildren(java.lang.String path, Stat stat, Watcher watcher)get children list for this pathbyte[]DataTree. getData(java.lang.String path, Stat stat, Watcher watcher)byte[]ZKDatabase. getData(java.lang.String path, Stat stat, Watcher watcher)get data and stat for a pathvoidDataTree. removeCnxn(Watcher watcher)voidWatchManager. removeWatcher(Watcher watcher)voidDataTree. setWatches(long relativeZxid, java.util.List<java.lang.String> dataWatches, java.util.List<java.lang.String> existWatches, java.util.List<java.lang.String> childWatches, Watcher watcher)voidZKDatabase. setWatches(long relativeZxid, java.util.List<java.lang.String> dataWatches, java.util.List<java.lang.String> existWatches, java.util.List<java.lang.String> childWatches, Watcher watcher)set watches on the datatreeStatDataTree. statNode(java.lang.String path, Watcher watcher)Method parameters in org.apache.zookeeper.server with type arguments of type Watcher Modifier and Type Method Description java.util.Set<Watcher>WatchManager. triggerWatch(java.lang.String path, Watcher.Event.EventType type, java.util.Set<Watcher> supress) -
Uses of Watcher in org.apache.zookeeper.server.upgrade
Methods in org.apache.zookeeper.server.upgrade with parameters of type Watcher Modifier and Type Method Description java.util.ArrayList<java.lang.String>DataTreeV1. getChildren(java.lang.String path, Stat stat, Watcher watcher)byte[]DataTreeV1. getData(java.lang.String path, Stat stat, Watcher watcher)voidDataTreeV1. removeCnxn(Watcher watcher)StatDataTreeV1. statNode(java.lang.String path, Watcher watcher)
-