java.lang.Runnable, org.apache.hadoop.conf.Configurable, DatanodeAdminMonitorInterfaceDatanodeAdminBackoffMonitor, DatanodeAdminDefaultMonitorpublic abstract class DatanodeAdminMonitorBase extends java.lang.Object implements DatanodeAdminMonitorInterface, org.apache.hadoop.conf.Configurable
| Modifier and Type | Field | Description |
|---|---|---|
protected BlockManager |
blockManager |
|
protected org.apache.hadoop.conf.Configuration |
conf |
|
protected DatanodeAdminManager |
dnAdmin |
|
protected int |
maxConcurrentTrackedNodes |
The maximum number of nodes to track in outOfServiceNodeBlocks.
|
protected Namesystem |
namesystem |
| Constructor | Description |
|---|---|
DatanodeAdminMonitorBase() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Queue<DatanodeDescriptor> |
getCancelledNodes() |
|
org.apache.hadoop.conf.Configuration |
getConf() |
Get the current Configuration stored in this object.
|
int |
getPendingNodeCount() |
Get the number of datanodes nodes in the pending queue.
|
java.util.Queue<DatanodeDescriptor> |
getPendingNodes() |
|
protected abstract 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 |
setBlockManager(BlockManager bm) |
Set the blockmanager for the cluster.
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
Used by the Configurable interface, which is used by ReflectionUtils
to create an instance of the monitor class.
|
void |
setDatanodeAdminManager(DatanodeAdminManager admin) |
Set the DatanodeAdminManager instance in use in the namenode.
|
void |
setNameSystem(Namesystem ns) |
Set the cluster namesystem.
|
void |
startTrackingNode(DatanodeDescriptor dn) |
Start tracking a node for decommission or maintenance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlocksPerLock, getNumNodesChecked, getPendingRepLimit, getTrackedNodeCount, setBlocksPerLock, setPendingRepLimit, stopTrackingNodeprotected BlockManager blockManager
protected Namesystem namesystem
protected DatanodeAdminManager dnAdmin
protected org.apache.hadoop.conf.Configuration conf
protected int maxConcurrentTrackedNodes
public void setNameSystem(Namesystem ns)
setNameSystem in interface DatanodeAdminMonitorInterfacens - The namesystem for the clusterpublic void setBlockManager(BlockManager bm)
setBlockManager in interface DatanodeAdminMonitorInterfacebm - The cluster BlockManagerpublic void setDatanodeAdminManager(DatanodeAdminManager admin)
setDatanodeAdminManager in interface DatanodeAdminMonitorInterfaceadmin - The current DatanodeAdminManagerpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurableconf - configuration to be usedpublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurableprotected abstract void processConf()
public void startTrackingNode(DatanodeDescriptor dn)
startTrackingNode in interface DatanodeAdminMonitorInterfacedn - The datanode to start trackingpublic int getPendingNodeCount()
getPendingNodeCount in interface DatanodeAdminMonitorInterfacepublic java.util.Queue<DatanodeDescriptor> getPendingNodes()
getPendingNodes in interface DatanodeAdminMonitorInterfacepublic java.util.Queue<DatanodeDescriptor> getCancelledNodes()
getCancelledNodes in interface DatanodeAdminMonitorInterfaceCopyright © 2008–2025 Apache Software Foundation. All rights reserved.