org.apache.hadoop.hbase.replication.regionserver
Class ReplicationSourceManager.OtherRegionServerWatcher
java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
org.apache.hadoop.hbase.replication.regionserver.ReplicationSourceManager.OtherRegionServerWatcher
- Enclosing class:
- ReplicationSourceManager
public class ReplicationSourceManager.OtherRegionServerWatcher
- extends ZooKeeperListener
Watcher used to be notified of the other region server's death
in the local cluster. It initiates the process to transfer the queues
if it is able to grab the lock.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplicationSourceManager.OtherRegionServerWatcher
public ReplicationSourceManager.OtherRegionServerWatcher(ZooKeeperWatcher watcher)
- Construct a ZooKeeper event listener.
nodeCreated
public void nodeCreated(String path)
- Called when a new node has been created.
- Overrides:
nodeCreated
in class ZooKeeperListener
- Parameters:
path
- full path of the new node
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 © 2011 The Apache Software Foundation. All Rights Reserved.