@InterfaceAudience.Private public abstract class ClientZKSyncer extends ZKListener
getNodesToWatch() methodwatcher| Constructor and Description |
|---|
ClientZKSyncer(ZKWatcher watcher,
ZKWatcher clientZkWatcher,
Server server) |
| 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 |
start()
Starts the syncer
|
getWatcher, nodeChildrenChangedpublic void start()
throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperException - if error occurs when trying to create base nodes on client ZKpublic void nodeCreated(String path)
ZKListenernodeCreated in class ZKListenerpath - full path of the new nodepublic void nodeDataChanged(String path)
ZKListenernodeDataChanged in class ZKListenerpath - full path of the updated nodepublic void nodeDeleted(String path)
ZKListenernodeDeleted in class ZKListenerpath - full path of the deleted nodeCopyright © 2007–2019 Cloudera. All rights reserved.