public class ReplicationPeerZKImpl.PeerConfigTracker extends ZooKeeperNodeTracker
abortable, LOG, nodewatcher| Constructor and Description |
|---|
PeerConfigTracker(String peerConfigNode,
ZooKeeperWatcher watcher,
Abortable abortable) |
| 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 |
setListener(ReplicationPeerConfigListener listener) |
blockUntilAvailable, blockUntilAvailable, checkIfBaseNodeAvailable, getData, getNode, nodeDeleted, start, stop, toStringgetWatcher, nodeChildrenChangedpublic PeerConfigTracker(String peerConfigNode, ZooKeeperWatcher watcher, Abortable abortable)
public void setListener(ReplicationPeerConfigListener listener)
public void nodeCreated(String path)
ZooKeeperListenernodeCreated in class ZooKeeperNodeTrackerpath - full path of the new nodepublic void nodeDataChanged(String path)
ZooKeeperListenernodeDataChanged in class ZooKeeperNodeTrackerpath - full path of the updated nodeCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.