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