@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) |
void |
nodeDataChanged(String path) |
void |
nodeDeleted(String path) |
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)
nodeCreated
in class ZKListener
public void nodeDataChanged(String path)
nodeDataChanged
in class ZKListener
public void nodeDeleted(String path)
nodeDeleted
in class ZKListener
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.