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 |
maxConcurrentTrackedNodes
The 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, wait
getBlocksPerLock, getNumNodesChecked, getPendingRepLimit, getTrackedNodeCount, setBlocksPerLock, setPendingRepLimit, stopTrackingNode
protected 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 DatanodeAdminMonitorInterface
ns
- The namesystem for the clusterpublic void setBlockManager(org.apache.hadoop.hdfs.server.blockmanagement.BlockManager bm)
setBlockManager
in interface DatanodeAdminMonitorInterface
bm
- The cluster BlockManagerpublic void setDatanodeAdminManager(org.apache.hadoop.hdfs.server.blockmanagement.DatanodeAdminManager admin)
setDatanodeAdminManager
in interface DatanodeAdminMonitorInterface
admin
- The current DatanodeAdminManagerpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
conf
- configuration to be usedpublic org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
protected abstract void processConf()
public void startTrackingNode(org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor dn)
startTrackingNode
in interface DatanodeAdminMonitorInterface
dn
- The datanode to start trackingpublic int getPendingNodeCount()
getPendingNodeCount
in interface DatanodeAdminMonitorInterface
public Queue<org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor> getPendingNodes()
getPendingNodes
in interface DatanodeAdminMonitorInterface
public Queue<org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor> getCancelledNodes()
getCancelledNodes
in interface DatanodeAdminMonitorInterface
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.