@InterfaceAudience.Private public abstract class ClientZKSyncer extends ZKListener
getPathsToWatch() methodwatcher| Constructor and Description |
|---|
ClientZKSyncer(ZKWatcher watcher,
ZKWatcher clientZkWatcher,
Server server) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Set<String> |
getPathsToWatch()
Returns the zk path(s) to watch
|
void |
nodeCreated(String path) |
void |
nodeDataChanged(String path) |
void |
nodeDeleted(String path) |
protected void |
refreshWatchingList() |
void |
start()
Starts the syncer
|
protected abstract boolean |
validate(String path)
Validate whether a znode path is watched by us
|
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)
nodeCreated in class ZKListenerpublic void nodeDataChanged(String path)
nodeDataChanged in class ZKListenerpublic void nodeDeleted(String path)
nodeDeleted in class ZKListenerprotected abstract boolean validate(String path)
path - the path to validateprotected final void refreshWatchingList()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.