public static class TestZooKeeperNodeTracker.TestingZKListener extends ZooKeeperListener
watcher
Constructor and Description |
---|
TestingZKListener(ZooKeeperWatcher watcher,
String node) |
Modifier and Type | Method and Description |
---|---|
void |
nodeCreated(String path)
Called when a new node has been created.
|
void |
nodeDataChanged(String path)
Called when an existing node has changed data.
|
void |
nodeDeleted(String path)
Called when a node has been deleted
|
void |
waitForCreation() |
void |
waitForDataChange() |
void |
waitForDeletion() |
getWatcher, nodeChildrenChanged
public TestingZKListener(ZooKeeperWatcher watcher, String node)
public void nodeDeleted(String path)
ZooKeeperListener
nodeDeleted
in class ZooKeeperListener
path
- full path of the deleted nodepublic void nodeCreated(String path)
ZooKeeperListener
nodeCreated
in class ZooKeeperListener
path
- full path of the new nodepublic void nodeDataChanged(String path)
ZooKeeperListener
nodeDataChanged
in class ZooKeeperListener
path
- full path of the updated nodepublic void waitForDeletion() throws InterruptedException
InterruptedException
public void waitForCreation() throws InterruptedException
InterruptedException
public void waitForDataChange() throws InterruptedException
InterruptedException