FederationMBean, RouterMBean@Metrics(name="RBFActivity",
about="RBF metrics",
context="dfs")
public class RBFMetrics
extends java.lang.Object
implements RouterMBean, FederationMBean
| Constructor | Description |
|---|---|
RBFMetrics(Router router) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Unregister the JMX beans.
|
java.lang.String |
getBlockPoolId() |
Gets the block pool ids of the namenodes.
|
java.lang.String |
getClusterId() |
Gets the cluster ids of the namenodes.
|
java.lang.String |
getCompiledDate() |
Get the compilation date of the router.
|
java.lang.String |
getCompileInfo() |
Get the compilation info of the router.
|
int |
getCorruptFilesCount() |
Get the number of corrupts files.
|
long |
getCurrentTokensCount() |
Get the current number of delegation tokens in memory.
|
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 |
getHostAndPort() |
Get the host and port of the router.
|
java.lang.String |
getMountTable() |
Get the mount table for the federated filesystem or null if failure.
|
java.lang.String |
getNamenodes() |
Get information about all the namenodes in the federation or null if
failure.
|
java.lang.String |
getNameservices() |
Get the latest info for each registered nameservice.
|
java.lang.String |
getNodeUsage() |
Get Max, Median, Min and Standard Deviation of DataNodes usage.
|
long |
getNumberOfMissingBlocksWithReplicationFactorOne() |
Gets the total number of missing blocks on the cluster with
replication factor 1.
|
long |
getNumBlocks() |
Get the number of blocks in the federation.
|
int |
getNumDeadNodes() |
Get the number of dead datanodes.
|
int |
getNumDecomDeadNodes() |
Get the number of dead decommissioned datanodes.
|
int |
getNumDecomLiveNodes() |
Get the number of live decommissioned datanodes.
|
int |
getNumDecommissioningNodes() |
Get the number of decommissioning datanodes.
|
int |
getNumEnteringMaintenanceDataNodes() |
Get the number of datanodes which are entering maintenance.
|
int |
getNumExpiredNamenodes() |
Get the number of expired namenodes.
|
long |
getNumFiles() |
Get the number of files in the federation.
|
int |
getNumInMaintenanceDeadDataNodes() |
Get the number of dead datanodes which are under maintenance.
|
int |
getNumInMaintenanceLiveDataNodes() |
Get the number of live datanodes which are under maintenance.
|
int |
getNumLiveNodes() |
Get the number of live datanodes.
|
int |
getNumNamenodes() |
Get the number of namenodes.
|
int |
getNumNameservices() |
Get the number of nameservices in the federation.
|
long |
getNumOfBlocksPendingDeletion() |
Get the number of pending deletion blocks in the federation.
|
long |
getNumOfBlocksPendingReplication() |
Get the number of pending replication blocks in the federation.
|
long |
getNumOfBlocksUnderReplicated() |
Get the number of under replicated blocks in the federation.
|
long |
getNumOfMissingBlocks() |
Get the number of missing blocks in the federation.
|
int |
getNumStaleNodes() |
Get the number of stale datanodes.
|
int |
getPendingSPSPaths() |
Returns the number of paths to be processed by storage policy satisfier.
|
long |
getProvidedSpace() |
Get the total remote storage capacity mounted in the federated cluster.
|
long |
getRemainingCapacity() |
Get the remaining capacity of the federated cluster.
|
java.math.BigInteger |
getRemainingCapacityBigInt() |
Get the remaining capacity (big integer) of the federated cluster.
|
int |
getRouterFederationRenameCount() |
Gets the count of the currently running router federation rename jobs.
|
java.lang.String |
getRouterId() |
Get the identifier of the router.
|
java.lang.String |
getRouters() |
Get the latest state of all routers.
|
java.lang.String |
getRouterStarted() |
When the router started.
|
java.lang.String |
getRouterStatus() |
Get the current state of the router.
|
java.lang.String |
getSafemode() |
Gets the safemode status.
|
long |
getScheduledReplicationBlocks() |
Blocks scheduled for replication.
|
int |
getSchedulerJobCount() |
Gets the count of the currently running jobs in the scheduler.
|
java.lang.String |
getTopTokenRealOwners() |
Get the top delegation token owners(realUser).
|
long |
getTotalCapacity() |
Get the total capacity of the federated cluster.
|
java.math.BigInteger |
getTotalCapacityBigInt() |
Get the total capacity (big integer) of the federated cluster.
|
long |
getUsedCapacity() |
Get the used capacity of the federated cluster.
|
java.math.BigInteger |
getUsedCapacityBigInt() |
Get the used capacity (big integer) of the federated cluster.
|
java.lang.String |
getVersion() |
Get the version of the router.
|
boolean |
isSecurityEnabled() |
Gets if security is enabled.
|
void |
setEnableGetDNUsage(boolean enableGetDNUsage) |
public RBFMetrics(Router router) throws java.io.IOException
java.io.IOException@VisibleForTesting public void setEnableGetDNUsage(boolean enableGetDNUsage)
public void close()
public java.lang.String getNamenodes()
FederationMBeangetNamenodes in interface FederationMBeanpublic java.lang.String getNameservices()
FederationMBeangetNameservices in interface FederationMBeanpublic java.lang.String getMountTable()
FederationMBeangetMountTable in interface FederationMBeanpublic java.lang.String getRouters()
FederationMBeangetRouters in interface FederationMBeanpublic long getTotalCapacity()
FederationMBeanFederationMBean.getTotalCapacityBigInt() instead.getTotalCapacity in interface FederationMBeanpublic long getRemainingCapacity()
FederationMBeanFederationMBean.getRemainingCapacityBigInt() instead.getRemainingCapacity in interface FederationMBeanpublic long getUsedCapacity()
FederationMBeanFederationMBean.getUsedCapacityBigInt() instead.getUsedCapacity in interface FederationMBeanpublic java.math.BigInteger getTotalCapacityBigInt()
FederationMBeangetTotalCapacityBigInt in interface FederationMBeanpublic java.math.BigInteger getRemainingCapacityBigInt()
FederationMBeangetRemainingCapacityBigInt in interface FederationMBeanpublic long getProvidedSpace()
FederationMBeangetProvidedSpace in interface FederationMBeanpublic java.math.BigInteger getUsedCapacityBigInt()
FederationMBeangetUsedCapacityBigInt in interface FederationMBeanpublic int getNumNameservices()
FederationMBeangetNumNameservices in interface FederationMBeanpublic int getNumNamenodes()
FederationMBeangetNumNamenodes in interface FederationMBeanpublic int getNumExpiredNamenodes()
FederationMBeangetNumExpiredNamenodes in interface FederationMBean@Metric({"NumLiveNodes","Number of live data nodes"})
public int getNumLiveNodes()
FederationMBeangetNumLiveNodes in interface FederationMBean@Metric({"NumDeadNodes","Number of dead data nodes"})
public int getNumDeadNodes()
FederationMBeangetNumDeadNodes in interface FederationMBean@Metric({"NumStaleNodes","Number of stale data nodes"})
public int getNumStaleNodes()
FederationMBeangetNumStaleNodes in interface FederationMBean@Metric({"NumDecommissioningNodes","Number of Decommissioning data nodes"})
public int getNumDecommissioningNodes()
FederationMBeangetNumDecommissioningNodes in interface FederationMBean@Metric({"NumDecomLiveNodes","Number of decommissioned Live data nodes"})
public int getNumDecomLiveNodes()
FederationMBeangetNumDecomLiveNodes in interface FederationMBean@Metric({"NumDecomDeadNodes","Number of decommissioned dead data nodes"})
public int getNumDecomDeadNodes()
FederationMBeangetNumDecomDeadNodes in interface FederationMBean@Metric({"NumInMaintenanceLiveDataNodes","Number of IN_MAINTENANCE live data nodes"})
public int getNumInMaintenanceLiveDataNodes()
FederationMBeangetNumInMaintenanceLiveDataNodes in interface FederationMBean@Metric({"NumInMaintenanceDeadDataNodes","Number of IN_MAINTENANCE dead data nodes"})
public int getNumInMaintenanceDeadDataNodes()
FederationMBeangetNumInMaintenanceDeadDataNodes in interface FederationMBean@Metric({"NumEnteringMaintenanceDataNodes","Number of ENTERING_MAINTENANCE data nodes"})
public int getNumEnteringMaintenanceDataNodes()
FederationMBeangetNumEnteringMaintenanceDataNodes in interface FederationMBeanpublic java.lang.String getNodeUsage()
FederationMBeangetNodeUsage in interface FederationMBean@Metric({"NumBlocks","Total number of blocks"})
public long getNumBlocks()
FederationMBeangetNumBlocks in interface FederationMBean@Metric({"NumOfMissingBlocks","Number of missing blocks"})
public long getNumOfMissingBlocks()
FederationMBeangetNumOfMissingBlocks in interface FederationMBean@Metric({"NumOfBlocksPendingReplication","Number of blocks pending replication"})
public long getNumOfBlocksPendingReplication()
FederationMBeangetNumOfBlocksPendingReplication in interface FederationMBean@Metric({"NumOfBlocksUnderReplicated","Number of blocks under replication"})
public long getNumOfBlocksUnderReplicated()
FederationMBeangetNumOfBlocksUnderReplicated in interface FederationMBean@Metric({"NumOfBlocksPendingDeletion","Number of blocks pending deletion"})
public long getNumOfBlocksPendingDeletion()
FederationMBeangetNumOfBlocksPendingDeletion in interface FederationMBean@Metric({"NumFiles","Number of files"})
public long getNumFiles()
FederationMBeangetNumFiles in interface FederationMBeanpublic java.lang.String getRouterStarted()
RouterMBeangetRouterStarted in interface FederationMBeangetRouterStarted in interface RouterMBeanpublic java.lang.String getVersion()
RouterMBeangetVersion in interface FederationMBeangetVersion in interface RouterMBeanpublic java.lang.String getCompiledDate()
RouterMBeangetCompiledDate in interface FederationMBeangetCompiledDate in interface RouterMBeanpublic java.lang.String getCompileInfo()
RouterMBeangetCompileInfo in interface FederationMBeangetCompileInfo in interface RouterMBeanpublic java.lang.String getHostAndPort()
RouterMBeangetHostAndPort in interface FederationMBeangetHostAndPort in interface RouterMBeanpublic java.lang.String getRouterId()
RouterMBeangetRouterId in interface FederationMBeangetRouterId in interface RouterMBeanpublic java.lang.String getClusterId()
RouterMBeangetClusterId in interface FederationMBeangetClusterId in interface RouterMBeanpublic java.lang.String getBlockPoolId()
RouterMBeangetBlockPoolId in interface FederationMBeangetBlockPoolId in interface RouterMBeanpublic java.lang.String getRouterStatus()
RouterMBeangetRouterStatus in interface FederationMBeangetRouterStatus in interface RouterMBean@Metric({"CurrentTokensCount","Number of router\'s current tokens"})
public long getCurrentTokensCount()
RouterMBeangetCurrentTokensCount in interface FederationMBeangetCurrentTokensCount in interface RouterMBeanpublic java.lang.String getTopTokenRealOwners()
RouterMBeangetTopTokenRealOwners in interface RouterMBeanpublic boolean isSecurityEnabled()
RouterMBeanisSecurityEnabled in interface FederationMBeanisSecurityEnabled in interface RouterMBeanpublic int getCorruptFilesCount()
FederationMBeangetCorruptFilesCount in interface FederationMBeanpublic long getScheduledReplicationBlocks()
FederationMBeangetScheduledReplicationBlocks in interface FederationMBeanpublic long getNumberOfMissingBlocksWithReplicationFactorOne()
FederationMBeangetNumberOfMissingBlocksWithReplicationFactorOne in interface FederationMBeanpublic long getHighestPriorityLowRedundancyReplicatedBlocks()
FederationMBeangetHighestPriorityLowRedundancyReplicatedBlocks in interface FederationMBeanpublic long getHighestPriorityLowRedundancyECBlocks()
FederationMBeangetHighestPriorityLowRedundancyECBlocks in interface FederationMBeanpublic int getPendingSPSPaths()
FederationMBeangetPendingSPSPaths in interface FederationMBean@Metric({"RouterFederationRenameCount","Number of federation rename"})
public int getRouterFederationRenameCount()
RouterMBeangetRouterFederationRenameCount in interface RouterMBean@Metric({"SchedulerJobCount","Number of scheduler job"})
public int getSchedulerJobCount()
RouterMBeangetSchedulerJobCount in interface RouterMBeanpublic java.lang.String getSafemode()
RouterMBeangetSafemode in interface RouterMBeanCopyright © 2008–2025 Apache Software Foundation. All rights reserved.