Class DatanodeAdminDefaultMonitor
java.lang.Object
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeAdminMonitorBase
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeAdminDefaultMonitor
- All Implemented Interfaces:
Runnable,org.apache.hadoop.conf.Configurable,DatanodeAdminMonitorInterface
public class DatanodeAdminDefaultMonitor
extends DatanodeAdminMonitorBase
implements DatanodeAdminMonitorInterface
Checks to see if datanodes have finished DECOMMISSION_INPROGRESS or
ENTERING_MAINTENANCE state.
Since this is done while holding the namesystem lock, the amount of work per monitor tick is limited.
-
Field Summary
Fields inherited from class org.apache.hadoop.hdfs.server.blockmanagement.DatanodeAdminMonitorBase
blockManager, conf, dnAdmin, maxConcurrentTrackedNodes, namesystem -
Method Summary
Modifier and TypeMethodDescriptionintintintintprotected voidAbstract method which must be implemented by the sub-classes to process set various instance variables from the Configuration passed at object creation time.voidrun()voidsetBlocksPerLock(int blocksPerLock) voidsetPendingRepLimit(int pendingRepLimit) voidMethods inherited from class org.apache.hadoop.hdfs.server.blockmanagement.DatanodeAdminMonitorBase
getCancelledNodes, getConf, getPendingNodeCount, getPendingNodes, setBlockManager, setConf, setDatanodeAdminManager, setNameSystem, startTrackingNodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hdfs.server.blockmanagement.DatanodeAdminMonitorInterface
getCancelledNodes, getPendingNodeCount, getPendingNodes, setBlockManager, setDatanodeAdminManager, setNameSystem, startTrackingNode
-
Method Details
-
processConf
protected void processConf()Description copied from class:DatanodeAdminMonitorBaseAbstract method which must be implemented by the sub-classes to process set various instance variables from the Configuration passed at object creation time.- Specified by:
processConfin classDatanodeAdminMonitorBase
-
stopTrackingNode
- Specified by:
stopTrackingNodein interfaceDatanodeAdminMonitorInterface
-
getTrackedNodeCount
public int getTrackedNodeCount()- Specified by:
getTrackedNodeCountin interfaceDatanodeAdminMonitorInterface
-
getNumNodesChecked
public int getNumNodesChecked()- Specified by:
getNumNodesCheckedin interfaceDatanodeAdminMonitorInterface
-
getPendingRepLimit
@VisibleForTesting public int getPendingRepLimit()- Specified by:
getPendingRepLimitin interfaceDatanodeAdminMonitorInterface
-
setPendingRepLimit
public void setPendingRepLimit(int pendingRepLimit) - Specified by:
setPendingRepLimitin interfaceDatanodeAdminMonitorInterface
-
getBlocksPerLock
@VisibleForTesting public int getBlocksPerLock()- Specified by:
getBlocksPerLockin interfaceDatanodeAdminMonitorInterface
-
setBlocksPerLock
public void setBlocksPerLock(int blocksPerLock) - Specified by:
setBlocksPerLockin interfaceDatanodeAdminMonitorInterface
-
run
public void run()
-