java.lang.Runnable, org.apache.hadoop.conf.Configurable, DatanodeAdminMonitorInterfacepublic 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 | 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(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(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 DatanodeAdminMonitorInterfacepublic void run()
run in interface java.lang.RunnableCopyright © 2008–2025 Apache Software Foundation. All rights reserved.