public class ReplicationPeerZKImpl.PeerConfigTracker extends ZooKeeperNodeTracker
abortable, LOG, nodewatcher| 构造器和说明 |
|---|
ReplicationPeerZKImpl.PeerConfigTracker(String peerConfigNode,
ZooKeeperWatcher watcher,
Abortable abortable) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addListener(ReplicationPeerConfigListener listener) |
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 |
removeListener(ReplicationPeerConfigListener listenerToRemove) |
blockUntilAvailable, blockUntilAvailable, checkIfBaseNodeAvailable, getData, getNode, nodeDeleted, start, stop, toStringgetWatcher, nodeChildrenChangedpublic ReplicationPeerZKImpl.PeerConfigTracker(String peerConfigNode, ZooKeeperWatcher watcher, Abortable abortable)
public void addListener(ReplicationPeerConfigListener listener)
public void removeListener(ReplicationPeerConfigListener listenerToRemove)
public void nodeCreated(String path)
ZooKeeperListenernodeCreated 在类中 ZooKeeperNodeTrackerpath - full path of the new nodepublic void nodeDataChanged(String path)
ZooKeeperListenernodeDataChanged 在类中 ZooKeeperNodeTrackerpath - full path of the updated nodeCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.