public abstract class DatanodeAdminMonitorBase extends Object implements DatanodeAdminMonitorInterface, org.apache.hadoop.conf.Configurable
| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.hadoop.hdfs.server.blockmanagement.BlockManager | blockManager | 
| protected org.apache.hadoop.conf.Configuration | conf | 
| protected org.apache.hadoop.hdfs.server.blockmanagement.DatanodeAdminManager | dnAdmin | 
| protected int | maxConcurrentTrackedNodesThe maximum number of nodes to track in outOfServiceNodeBlocks. | 
| protected org.apache.hadoop.hdfs.server.namenode.Namesystem | namesystem | 
| Constructor and Description | 
|---|
| DatanodeAdminMonitorBase() | 
| Modifier and Type | Method and Description | 
|---|---|
| Queue<org.apache.hadoop.hdfs.server.blockmanagement.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. | 
| Queue<org.apache.hadoop.hdfs.server.blockmanagement.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(org.apache.hadoop.hdfs.server.blockmanagement.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(org.apache.hadoop.hdfs.server.blockmanagement.DatanodeAdminManager admin)Set the DatanodeAdminManager instance in use in the namenode. | 
| void | setNameSystem(org.apache.hadoop.hdfs.server.namenode.Namesystem ns)Set the cluster namesystem. | 
| void | startTrackingNode(org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor dn)Start tracking a node for decommission or maintenance. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNumNodesChecked, getTrackedNodeCount, stopTrackingNodeprotected org.apache.hadoop.hdfs.server.blockmanagement.BlockManager blockManager
protected org.apache.hadoop.hdfs.server.namenode.Namesystem namesystem
protected org.apache.hadoop.hdfs.server.blockmanagement.DatanodeAdminManager dnAdmin
protected org.apache.hadoop.conf.Configuration conf
protected int maxConcurrentTrackedNodes
public void setNameSystem(org.apache.hadoop.hdfs.server.namenode.Namesystem ns)
setNameSystem in interface DatanodeAdminMonitorInterfacens - The namesystem for the clusterpublic void setBlockManager(org.apache.hadoop.hdfs.server.blockmanagement.BlockManager bm)
setBlockManager in interface DatanodeAdminMonitorInterfacebm - The cluster BlockManagerpublic void setDatanodeAdminManager(org.apache.hadoop.hdfs.server.blockmanagement.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(org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor dn)
startTrackingNode in interface DatanodeAdminMonitorInterfacedn - The datanode to start trackingpublic int getPendingNodeCount()
getPendingNodeCount in interface DatanodeAdminMonitorInterfacepublic Queue<org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor> getPendingNodes()
getPendingNodes in interface DatanodeAdminMonitorInterfacepublic Queue<org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor> getCancelledNodes()
getCancelledNodes in interface DatanodeAdminMonitorInterfaceCopyright © 2008–2023 Apache Software Foundation. All rights reserved.