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

java.lang.Object
  extended by org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
      extended by 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.


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
watcher
 
Constructor Summary
ReplicationTrackerZKImpl.OtherRegionServerWatcher(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 nodeCreated(String path)
          Called when a new node has been created.
 void nodeDeleted(String path)
          Called when a node has been deleted
 
Methods inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperListener
getWatcher, nodeDataChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicationTrackerZKImpl.OtherRegionServerWatcher

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

Method Detail

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.