public class ReplicationPeerZKImpl.PeerConfigTracker extends ZKNodeTracker
Modifier and Type | Field and Description |
---|---|
(package private) ReplicationPeerConfigListener |
listener |
abortable, LOG, node
watcher
Constructor and Description |
---|
PeerConfigTracker(String peerConfigNode,
ZKWatcher 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, toString
getWatcher, nodeChildrenChanged
ReplicationPeerConfigListener listener
public PeerConfigTracker(String peerConfigNode, ZKWatcher watcher, Abortable abortable)
public void setListener(ReplicationPeerConfigListener listener)
public void nodeCreated(String path)
ZKListener
nodeCreated
in class ZKNodeTracker
path
- full path of the new nodepublic void nodeDataChanged(String path)
ZKListener
nodeDataChanged
in class ZKNodeTracker
path
- full path of the updated nodeCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.