public static class TestMasterAddressTracker.NodeCreationListener extends ZooKeeperListener
watcher
Constructor and Description |
---|
NodeCreationListener(ZooKeeperWatcher watcher,
String node) |
Modifier and Type | Method and Description |
---|---|
void |
nodeCreated(String path)
Called when a new node has been created.
|
void |
waitForCreation() |
getWatcher, nodeChildrenChanged, nodeDataChanged, nodeDeleted
public NodeCreationListener(ZooKeeperWatcher watcher, String node)
public void nodeCreated(String path)
ZooKeeperListener
nodeCreated
in class ZooKeeperListener
path
- full path of the new nodepublic void waitForCreation() throws InterruptedException
InterruptedException