|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.zookeeper.ZooKeeperListener
org.apache.hadoop.hbase.zookeeper.DrainingServerTracker
@InterfaceAudience.Private public class DrainingServerTracker
Tracks the list of draining region servers via ZK.
This class is responsible for watching for changes to the draining servers list. It handles adds/deletes in the draining RS list and watches each node.
If an RS gets deleted from draining list, we call
ServerManager.removeServerFromDrainList(ServerName)
If an RS gets added to the draining list, we add a watcher to it and call
ServerManager.addServerToDrainList(ServerName)
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperListener |
|---|
watcher |
| Constructor Summary | |
|---|---|
DrainingServerTracker(ZooKeeperWatcher watcher,
Abortable abortable,
ServerManager serverManager)
|
|
| 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 |
void |
start()
Starts the tracking of draining RegionServers. |
| Methods inherited from class org.apache.hadoop.hbase.zookeeper.ZooKeeperListener |
|---|
nodeCreated, nodeDataChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DrainingServerTracker(ZooKeeperWatcher watcher,
Abortable abortable,
ServerManager serverManager)
| Method Detail |
|---|
public void start()
throws org.apache.zookeeper.KeeperException,
IOException
All Draining RSs will be tracked after this method is called.
org.apache.zookeeper.KeeperException
IOExceptionpublic void nodeDeleted(String path)
ZooKeeperListener
nodeDeleted in class ZooKeeperListenerpath - full path of the deleted nodepublic void nodeChildrenChanged(String path)
ZooKeeperListener
nodeChildrenChanged in class ZooKeeperListenerpath - full path of the node whose children have changed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||