@InterfaceAudience.Private public class DrainingServerTracker extends ZKListener
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
If an RS gets added to the draining list, we add a watcher to it and call
This class is deprecated in 2.0 because decommission/draining API goes through master in 2.0. Can remove this class in 3.0.
|Constructor and Description|
|Modifier and Type||Method and Description|
Called when an existing node has a child node added or removed.
Called when a node has been deleted
Starts the tracking of draining RegionServers.
getWatcher, nodeCreated, nodeDataChanged
public void start() throws org.apache.zookeeper.KeeperException, IOException
All Draining RSs will be tracked after this method is called.
public void nodeDeleted(String path)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.