public class DatanodeAdminDefaultMonitor extends DatanodeAdminMonitorBase implements DatanodeAdminMonitorInterface
Since this is done while holding the namesystem lock, the amount of work per monitor tick is limited.
blockManager, conf, dnAdmin, maxConcurrentTrackedNodes, namesystem| Modifier and Type | Method and Description |
|---|---|
int |
getBlocksPerLock() |
int |
getNumNodesChecked() |
int |
getPendingRepLimit() |
int |
getTrackedNodeCount() |
protected void |
processConf()
Abstract method which must be implemented by the sub-classes to process
set various instance variables from the Configuration passed at object
creation time.
|
void |
run() |
void |
setBlocksPerLock(int blocksPerLock) |
void |
setPendingRepLimit(int pendingRepLimit) |
void |
stopTrackingNode(org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor dn) |
getCancelledNodes, getConf, getPendingNodeCount, getPendingNodes, setBlockManager, setConf, setDatanodeAdminManager, setNameSystem, startTrackingNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCancelledNodes, getPendingNodeCount, getPendingNodes, setBlockManager, setDatanodeAdminManager, setNameSystem, startTrackingNodeprotected void processConf()
DatanodeAdminMonitorBaseprocessConf in class DatanodeAdminMonitorBasepublic void stopTrackingNode(org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor dn)
stopTrackingNode in interface DatanodeAdminMonitorInterfacepublic int getTrackedNodeCount()
getTrackedNodeCount in interface DatanodeAdminMonitorInterfacepublic int getNumNodesChecked()
getNumNodesChecked in interface DatanodeAdminMonitorInterface@VisibleForTesting public int getPendingRepLimit()
getPendingRepLimit in interface DatanodeAdminMonitorInterfacepublic void setPendingRepLimit(int pendingRepLimit)
setPendingRepLimit in interface DatanodeAdminMonitorInterface@VisibleForTesting public int getBlocksPerLock()
getBlocksPerLock in interface DatanodeAdminMonitorInterfacepublic void setBlocksPerLock(int blocksPerLock)
setBlocksPerLock in interface DatanodeAdminMonitorInterfaceCopyright © 2008–2024 Apache Software Foundation. All rights reserved.