public class NamenodeStatusReport
extends java.lang.Object
| Constructor | Description |
|---|---|
NamenodeStatusReport(java.lang.String ns,
java.lang.String nn,
java.lang.String rpc,
java.lang.String service,
java.lang.String lifeline,
java.lang.String webScheme,
java.lang.String web) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
getAvailableSpace() |
Get the available space.
|
java.lang.String |
getBlockPoolId() |
Get the block pool identifier.
|
java.lang.String |
getClusterId() |
Get the cluster identifier.
|
int |
getCorruptFilesCount() |
Get the number of corrupt files.
|
long |
getHighestPriorityLowRedundancyECBlocks() |
Gets the total number of erasure coded low redundancy blocks on the cluster
with the highest risk of loss.
|
long |
getHighestPriorityLowRedundancyReplicatedBlocks() |
Gets the total number of replicated low redundancy blocks on the cluster
with the highest risk of loss.
|
java.lang.String |
getLifelineAddress() |
Get the Lifeline RPC address.
|
java.lang.String |
getNamenodeId() |
Get the namenode identifier.
|
java.lang.String |
getNameserviceId() |
Get the name service identifier.
|
long |
getNumberOfMissingBlocksWithReplicationFactorOne() |
Gets the total number of missing blocks on the cluster with
replication factor 1.
|
long |
getNumBlocks() |
Get the number of blocks.
|
long |
getNumBlocksMissing() |
Get the number of missing blocks.
|
int |
getNumDeadDatanodes() |
Get the number of dead nodes.
|
int |
getNumDecomDeadDatanodes() |
Get the number of dead decommissioned nodes.
|
int |
getNumDecomLiveDatanodes() |
Get the number of live decommissioned nodes.
|
int |
getNumDecommissioningDatanodes() |
Get the number of decommissionining nodes.
|
int |
getNumEnteringMaintenanceDataNodes() |
Get the number of entering maintenance nodes.
|
long |
getNumFiles() |
Get the number of files.
|
int |
getNumInMaintenanceDeadDataNodes() |
Get the number of dead in maintenance nodes.
|
int |
getNumInMaintenanceLiveDataNodes() |
Get the number of live in maintenance nodes.
|
int |
getNumLiveDatanodes() |
Get the number of live blocks.
|
long |
getNumOfBlocksPendingDeletion() |
Get the number of pending deletion blocks.
|
long |
getNumOfBlocksPendingReplication() |
Get the number of pending replication blocks.
|
long |
getNumOfBlocksUnderReplicated() |
Get the number of under replicated blocks.
|
int |
getNumStaleDatanodes() |
Get the number of stale nodes.
|
int |
getPendingSPSPaths() |
Returns the number of paths to be processed by storage policy satisfier.
|
long |
getProvidedSpace() |
Get the space occupied by provided storage.
|
java.lang.String |
getRpcAddress() |
Get the RPC address.
|
boolean |
getSafemode() |
|
long |
getScheduledReplicationBlocks() |
Blocks scheduled for replication.
|
java.lang.String |
getServiceAddress() |
Get the Service RPC address.
|
FederationNamenodeServiceState |
getState() |
Get the state of the Namenode being monitored.
|
long |
getTotalSpace() |
Get the total space.
|
java.lang.String |
getWebAddress() |
Get the web address.
|
java.lang.String |
getWebScheme() |
Get the scheme of web address.
|
boolean |
haStateValid() |
If the HA state is valid.
|
boolean |
registrationValid() |
If the registration is valid.
|
void |
setDatanodeInfo(int numLive,
int numDead,
int numStale,
int numDecom,
int numLiveDecom,
int numDeadDecom,
int numInMaintenanceLive,
int numInMaintenanceDead,
int numEnteringMaintenance,
long numScheduledReplicationBlocks) |
Set the datanode information.
|
void |
setHAServiceState(org.apache.hadoop.ha.HAServiceProtocol.HAServiceState state) |
Set the HA service state.
|
void |
setNamenodeInfo(int numCorruptFiles,
long numOfMissingBlocksWithReplicationFactorOne,
long highestPriorityLowRedundancyRepBlocks,
long highPriorityLowRedundancyECBlocks) |
Set the namenode blocks information.
|
void |
setNamespaceInfo(org.apache.hadoop.hdfs.server.protocol.NamespaceInfo info) |
Set the namespace information.
|
void |
setNamesystemInfo(long available,
long total,
long numFiles,
long numBlocks,
long numBlocksMissing,
long numBlocksPendingReplication,
long numBlocksUnderReplicated,
long numBlocksPendingDeletion,
long providedStorageSpace,
int numPendingSPSPaths) |
Set the filesystem information.
|
void |
setRegistrationValid(boolean isValid) |
Set the validity of registration.
|
void |
setSafeMode(boolean safemode) |
|
boolean |
statsValid() |
If the statistics are valid.
|
java.lang.String |
toString() |
public NamenodeStatusReport(java.lang.String ns,
java.lang.String nn,
java.lang.String rpc,
java.lang.String service,
java.lang.String lifeline,
java.lang.String webScheme,
java.lang.String web)
public boolean statsValid()
public boolean registrationValid()
public boolean haStateValid()
public FederationNamenodeServiceState getState()
public java.lang.String getNameserviceId()
public java.lang.String getNamenodeId()
public java.lang.String getClusterId()
public java.lang.String getBlockPoolId()
public java.lang.String getRpcAddress()
public java.lang.String getServiceAddress()
public java.lang.String getLifelineAddress()
public java.lang.String getWebAddress()
public java.lang.String getWebScheme()
public void setHAServiceState(org.apache.hadoop.ha.HAServiceProtocol.HAServiceState state)
state - The HA service state to set.public void setNamespaceInfo(org.apache.hadoop.hdfs.server.protocol.NamespaceInfo info)
info - Namespace information.public void setSafeMode(boolean safemode)
public boolean getSafemode()
public void setDatanodeInfo(int numLive,
int numDead,
int numStale,
int numDecom,
int numLiveDecom,
int numDeadDecom,
int numInMaintenanceLive,
int numInMaintenanceDead,
int numEnteringMaintenance,
long numScheduledReplicationBlocks)
numLive - Number of live nodes.numDead - Number of dead nodes.numStale - Number of stale nodes.numDecom - Number of decommissioning nodes.numLiveDecom - Number of decommissioned live nodes.numDeadDecom - Number of decommissioned dead nodes.numInMaintenanceLive - Number of in maintenance live nodes.numInMaintenanceDead - Number of in maintenance dead nodes.numEnteringMaintenance - Number of entering maintenance nodes.numScheduledReplicationBlocks - Number of scheduled rep. blocks.public int getNumLiveDatanodes()
public int getNumDeadDatanodes()
public int getNumStaleDatanodes()
public int getNumDecommissioningDatanodes()
public int getNumDecomLiveDatanodes()
public int getNumDecomDeadDatanodes()
public int getNumInMaintenanceLiveDataNodes()
public int getNumInMaintenanceDeadDataNodes()
public int getNumEnteringMaintenanceDataNodes()
public void setNamesystemInfo(long available,
long total,
long numFiles,
long numBlocks,
long numBlocksMissing,
long numBlocksPendingReplication,
long numBlocksUnderReplicated,
long numBlocksPendingDeletion,
long providedStorageSpace,
int numPendingSPSPaths)
available - Available capacity.total - Total capacity.numFiles - Number of files.numBlocks - Total number of blocks.numBlocksMissing - Number of missing blocks.numBlocksPendingReplication - Number of blocks pending replication.numBlocksUnderReplicated - Number of blocks under replication.numBlocksPendingDeletion - Number of blocks pending deletion.providedStorageSpace - Space in provided storage.numPendingSPSPaths - The number of paths to be processed by storage policy satisfier.public void setNamenodeInfo(int numCorruptFiles,
long numOfMissingBlocksWithReplicationFactorOne,
long highestPriorityLowRedundancyRepBlocks,
long highPriorityLowRedundancyECBlocks)
numCorruptFiles - number of corrupt files.numOfMissingBlocksWithReplicationFactorOne - number of missing
blocks with rep one.highestPriorityLowRedundancyRepBlocks - number of high priority low
redundancy rep blocks.highPriorityLowRedundancyECBlocks - number of high priority low
redundancy EC blocks.public int getCorruptFilesCount()
public long getScheduledReplicationBlocks()
public long getNumberOfMissingBlocksWithReplicationFactorOne()
public long getHighestPriorityLowRedundancyReplicatedBlocks()
public long getHighestPriorityLowRedundancyECBlocks()
public int getPendingSPSPaths()
public long getNumBlocks()
public long getNumFiles()
public long getTotalSpace()
public long getAvailableSpace()
public long getProvidedSpace()
public long getNumBlocksMissing()
public long getNumOfBlocksPendingReplication()
public long getNumOfBlocksUnderReplicated()
public long getNumOfBlocksPendingDeletion()
public void setRegistrationValid(boolean isValid)
isValid - The desired value to be set.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.