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, startTrackingNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCancelledNodes, getPendingNodeCount, getPendingNodes, setBlockManager, setDatanodeAdminManager, setNameSystem, startTrackingNode
protected void processConf()
DatanodeAdminMonitorBase
processConf
in class DatanodeAdminMonitorBase
public void stopTrackingNode(org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor dn)
stopTrackingNode
in interface DatanodeAdminMonitorInterface
public int getTrackedNodeCount()
getTrackedNodeCount
in interface DatanodeAdminMonitorInterface
public int getNumNodesChecked()
getNumNodesChecked
in interface DatanodeAdminMonitorInterface
@VisibleForTesting public int getPendingRepLimit()
getPendingRepLimit
in interface DatanodeAdminMonitorInterface
public void setPendingRepLimit(int pendingRepLimit)
setPendingRepLimit
in interface DatanodeAdminMonitorInterface
@VisibleForTesting public int getBlocksPerLock()
getBlocksPerLock
in interface DatanodeAdminMonitorInterface
public void setBlocksPerLock(int blocksPerLock)
setBlocksPerLock
in interface DatanodeAdminMonitorInterface
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.