Class ZooInspectorManagerImpl.NodeWatcher
- java.lang.Object
-
- org.apache.zookeeper.inspector.manager.ZooInspectorManagerImpl.NodeWatcher
-
- All Implemented Interfaces:
Watcher
- Enclosing class:
- ZooInspectorManagerImpl
public class ZooInspectorManagerImpl.NodeWatcher extends java.lang.Object implements Watcher
A Watcher which will re-add itself every time an event is fired
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher
Watcher.Event, Watcher.WatcherType
-
-
Constructor Summary
Constructors Constructor Description NodeWatcher(java.lang.String nodePath, NodeListener nodeListener, ZooKeeper zookeeper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(WatchedEvent event)
void
stop()
-
-
-
Constructor Detail
-
NodeWatcher
public NodeWatcher(java.lang.String nodePath, NodeListener nodeListener, ZooKeeper zookeeper) throws KeeperException, java.lang.InterruptedException
- Parameters:
nodePath
- - the path to the node to watchnodeListener
- theNodeListener
for this nodezookeeper
- - aZooKeeper
to use to access zookeeper- Throws:
java.lang.InterruptedException
KeeperException
-
-
Method Detail
-
process
public void process(WatchedEvent event)
-
stop
public void stop()
-
-