org.apache.hadoop.hbase.replication
Class ReplicationTrackerZKImpl.PeersWatcher

java.lang.Object
  extended by org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
      extended by org.apache.hadoop.hbase.replication.ReplicationTrackerZKImpl.PeersWatcher
Enclosing class:
ReplicationTrackerZKImpl

public class ReplicationTrackerZKImpl.PeersWatcher
extends ZooKeeperListener

Watcher used to follow the creation and deletion of peer clusters.


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
watcher
 
Constructor Summary
ReplicationTrackerZKImpl.PeersWatcher(ZooKeeperWatcher watcher)
          Construct a ZooKeeper event listener.
 
Method Summary
 void nodeChildrenChanged(String path)
          Called when an existing node has a child node added or removed.
 void nodeDeleted(String path)
          Called when a node has been deleted
 
Methods inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
getWatcher, nodeCreated, nodeDataChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicationTrackerZKImpl.PeersWatcher

public ReplicationTrackerZKImpl.PeersWatcher(ZooKeeperWatcher watcher)
Construct a ZooKeeper event listener.

Method Detail

nodeDeleted

public void nodeDeleted(String path)
Called when a node has been deleted

Overrides:
nodeDeleted in class ZooKeeperListener
Parameters:
path - full path of the deleted node

nodeChildrenChanged

public void nodeChildrenChanged(String path)
Called when an existing node has a child node added or removed.

Overrides:
nodeChildrenChanged in class ZooKeeperListener
Parameters:
path - full path of the node whose children have changed


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