org.apache.hadoop.hbase.replication
Class ReplicationTrackerZKImpl.OtherRegionServerWatcher
java.lang.Object
org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
org.apache.hadoop.hbase.replication.ReplicationTrackerZKImpl.OtherRegionServerWatcher
- Enclosing class:
- ReplicationTrackerZKImpl
public class ReplicationTrackerZKImpl.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 |
ReplicationTrackerZKImpl.OtherRegionServerWatcher
public ReplicationTrackerZKImpl.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 © 2007-2016 The Apache Software Foundation. All Rights Reserved.