@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, nodeChildrenChanged
public 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)
ZKListener
nodeCreated
in class ZKListener
path
- full path of the new nodepublic void nodeDataChanged(String path)
ZKListener
nodeDataChanged
in class ZKListener
path
- full path of the updated nodepublic void nodeDeleted(String path)
ZKListener
nodeDeleted
in class ZKListener
path
- full path of the deleted nodeCopyright © 2007–2019 Cloudera. All rights reserved.