|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.zookeeper.ZooKeeperListener
org.apache.hadoop.hbase.zookeeper.DeletionListener
@InterfaceAudience.Private public class DeletionListener
A ZooKeeper watcher meant to detect deletions of ZNodes.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperListener |
---|
watcher |
Constructor Summary | |
---|---|
DeletionListener(ZooKeeperWatcher zkWatcher,
String pathToWatch,
CountDownLatch deletedLatch)
Create a new instance of the deletion watcher. |
Method Summary | |
---|---|
Throwable |
getException()
Get the last exception which has occurred when re-setting the watch. |
boolean |
hasException()
Check if an exception has occurred when re-setting the watch. |
void |
nodeDataChanged(String path)
Called when an existing node has changed data. |
void |
nodeDeleted(String path)
Called when a node has been deleted |
Methods inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperListener |
---|
getWatcher, nodeChildrenChanged, nodeCreated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeletionListener(ZooKeeperWatcher zkWatcher, String pathToWatch, CountDownLatch deletedLatch)
zkWatcher
- ZookeeperWatcher instancepathToWatch
- (Fully qualified) ZNode path that we are waiting to
be deleted.deletedLatch
- Count down on this latch when deletion has occured.Method Detail |
---|
public boolean hasException()
public Throwable getException()
public void nodeDataChanged(String path)
ZooKeeperListener
nodeDataChanged
in class ZooKeeperListener
path
- full path of the updated nodepublic void nodeDeleted(String path)
ZooKeeperListener
nodeDeleted
in class ZooKeeperListener
path
- full path of the deleted node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |