public static class TestZKNodeTracker.TestingZKListener extends ZKListener
watcher| Constructor and Description |
|---|
TestingZKListener(ZKWatcher watcher,
String node) |
| Modifier and Type | Method and Description |
|---|---|
void |
nodeCreated(String path) |
void |
nodeDataChanged(String path) |
void |
nodeDeleted(String path) |
void |
waitForCreation() |
void |
waitForDataChange() |
void |
waitForDeletion() |
getWatcher, nodeChildrenChangedpublic TestingZKListener(ZKWatcher watcher, String node)
public void nodeDeleted(String path)
nodeDeleted in class ZKListenerpublic void nodeCreated(String path)
nodeCreated in class ZKListenerpublic void nodeDataChanged(String path)
nodeDataChanged in class ZKListenerpublic void waitForDeletion() throws InterruptedException
InterruptedExceptionpublic void waitForCreation() throws InterruptedException
InterruptedExceptionpublic void waitForDataChange() throws InterruptedException
InterruptedExceptionCopyright © 2007–2019 Cloudera. All rights reserved.