org.apache.hadoop.hbase.replication
Class ReplicationPeerZKImpl.PeerConfigTracker

java.lang.Object
  extended by org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
      extended by org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker
          extended by org.apache.hadoop.hbase.replication.ReplicationPeerZKImpl.PeerConfigTracker
Enclosing class:
ReplicationPeerZKImpl

public class ReplicationPeerZKImpl.PeerConfigTracker
extends ZooKeeperNodeTracker

Tracker for PeerConfigNode of this peer


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker
abortable, node
 
Fields inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
watcher
 
Constructor Summary
ReplicationPeerZKImpl.PeerConfigTracker(String peerConfigNode, ZooKeeperWatcher watcher, Abortable abortable)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker
blockUntilAvailable, blockUntilAvailable, checkIfBaseNodeAvailable, getData, getNode, nodeDeleted, start, stop
 
Methods inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
getWatcher, nodeChildrenChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicationPeerZKImpl.PeerConfigTracker

public ReplicationPeerZKImpl.PeerConfigTracker(String peerConfigNode,
                                               ZooKeeperWatcher watcher,
                                               Abortable abortable)
Method Detail

setListener

public void setListener(ReplicationPeerConfigListener listener)

nodeCreated

public void nodeCreated(String path)
Description copied from class: ZooKeeperListener
Called when a new node has been created.

Overrides:
nodeCreated in class ZooKeeperNodeTracker
Parameters:
path - full path of the new node

nodeDataChanged

public void nodeDataChanged(String path)
Description copied from class: ZooKeeperListener
Called when an existing node has changed data.

Overrides:
nodeDataChanged in class ZooKeeperNodeTracker
Parameters:
path - full path of the updated node


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.