Interface FederationMBean
- All Known Implementing Classes:
RBFMetrics
@Private
@Evolving
public interface FederationMBean
JMX interface for the federation statistics.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.UseRouterMBean.getClusterId()instead.Deprecated.UseRouterMBean.getCompiledDate()instead.Deprecated.UseRouterMBean.getCompileInfo()instead.intGet the number of corrupts files.longDeprecated.UseRouterMBean.getCurrentTokensCount()instead.longGets the total number of erasure coded low redundancy blocks on the cluster with the highest risk of loss.longGets the total number of replicated low redundancy blocks on the cluster with the highest risk of loss.Deprecated.UseRouterMBean.getHostAndPort()instead.Get the mount table for the federated filesystem or null if failure.Get information about all the namenodes in the federation or null if failure.Get the latest info for each registered nameservice.Get Max, Median, Min and Standard Deviation of DataNodes usage.longGets the total number of badly distributed blocks.longGets the total number of missing blocks on the cluster with replication factor 1.longGet the number of blocks in the federation.intGet the number of dead datanodes.intGet the number of dead decommissioned datanodes.intGet the number of live decommissioned datanodes.intGet the number of decommissioning datanodes.intGet the number of datanodes which are entering maintenance.intGet the number of expired namenodes.longGet the number of files in the federation.intGet the number of dead datanodes which are under maintenance.intGet the number of live datanodes which are under maintenance.intGet the number of live datanodes.intGet the number of namenodes.intGet the number of nameservices in the federation.longGet the number of pending deletion blocks in the federation.longGet the number of pending replication blocks in the federation.longGet the number of under replicated blocks in the federation.longGet the number of missing blocks in the federation.intGet the number of stale datanodes.intReturns the number of paths to be processed by storage policy satisfier.longGet the total remote storage capacity mounted in the federated cluster.longGet the remaining capacity of the federated cluster.Get the remaining capacity (big integer) of the federated cluster.Deprecated.UseRouterMBean.getRouterId()instead.Get the latest state of all routers.Deprecated.UseRouterMBean.getRouterStarted()instead.Deprecated.UseRouterMBean.getRouterStatus()instead.longBlocks scheduled for replication.longGet the total capacity of the federated cluster.Get the total capacity (big integer) of the federated cluster.longGet the used capacity of the federated cluster.Get the used capacity (big integer) of the federated cluster.Deprecated.UseRouterMBean.getVersion()instead.booleanDeprecated.UseRouterMBean.isSecurityEnabled()instead.
-
Method Details
-
getNamenodes
String getNamenodes()Get information about all the namenodes in the federation or null if failure.- Returns:
- JSON with all the Namenodes.
-
getNameservices
String getNameservices()Get the latest info for each registered nameservice.- Returns:
- JSON with all the nameservices.
-
getMountTable
String getMountTable()Get the mount table for the federated filesystem or null if failure.- Returns:
- JSON with the mount table.
-
getRouters
String getRouters()Get the latest state of all routers.- Returns:
- JSON with all the known routers or null if failure.
-
getTotalCapacity
long getTotalCapacity()Get the total capacity of the federated cluster. The number could overflow if too big. In that case usegetTotalCapacityBigInt()instead.- Returns:
- Total capacity of the federated cluster.
-
getUsedCapacity
long getUsedCapacity()Get the used capacity of the federated cluster. The number could overflow if too big. In that case usegetUsedCapacityBigInt()instead.- Returns:
- Used capacity of the federated cluster.
-
getRemainingCapacity
long getRemainingCapacity()Get the remaining capacity of the federated cluster. The number could overflow if too big. In that case usegetRemainingCapacityBigInt()instead.- Returns:
- Remaining capacity of the federated cluster.
-
getTotalCapacityBigInt
BigInteger getTotalCapacityBigInt()Get the total capacity (big integer) of the federated cluster.- Returns:
- Total capacity of the federated cluster.
-
getUsedCapacityBigInt
BigInteger getUsedCapacityBigInt()Get the used capacity (big integer) of the federated cluster.- Returns:
- Used capacity of the federated cluster.
-
getRemainingCapacityBigInt
BigInteger getRemainingCapacityBigInt()Get the remaining capacity (big integer) of the federated cluster.- Returns:
- Remaining capacity of the federated cluster.
-
getProvidedSpace
long getProvidedSpace()Get the total remote storage capacity mounted in the federated cluster.- Returns:
- Remote capacity of the federated cluster.
-
getNumNameservices
int getNumNameservices()Get the number of nameservices in the federation.- Returns:
- Number of nameservices in the federation.
-
getNumNamenodes
int getNumNamenodes()Get the number of namenodes.- Returns:
- Number of namenodes.
-
getNumExpiredNamenodes
int getNumExpiredNamenodes()Get the number of expired namenodes.- Returns:
- Number of expired namenodes.
-
getNumLiveNodes
int getNumLiveNodes()Get the number of live datanodes.- Returns:
- Number of live datanodes.
-
getNumDeadNodes
int getNumDeadNodes()Get the number of dead datanodes.- Returns:
- Number of dead datanodes.
-
getNumStaleNodes
int getNumStaleNodes()Get the number of stale datanodes.- Returns:
- Number of stale datanodes.
-
getNumDecommissioningNodes
int getNumDecommissioningNodes()Get the number of decommissioning datanodes.- Returns:
- Number of decommissioning datanodes.
-
getNumDecomLiveNodes
int getNumDecomLiveNodes()Get the number of live decommissioned datanodes.- Returns:
- Number of live decommissioned datanodes.
-
getNumDecomDeadNodes
int getNumDecomDeadNodes()Get the number of dead decommissioned datanodes.- Returns:
- Number of dead decommissioned datanodes.
-
getNumInMaintenanceLiveDataNodes
int getNumInMaintenanceLiveDataNodes()Get the number of live datanodes which are under maintenance.- Returns:
- Number of live datanodes which are under maintenance.
-
getNumInMaintenanceDeadDataNodes
int getNumInMaintenanceDeadDataNodes()Get the number of dead datanodes which are under maintenance.- Returns:
- Number of dead datanodes which are under maintenance.
-
getNumEnteringMaintenanceDataNodes
int getNumEnteringMaintenanceDataNodes()Get the number of datanodes which are entering maintenance.- Returns:
- Number of datanodes which are entering maintenance.
-
getNodeUsage
String getNodeUsage()Get Max, Median, Min and Standard Deviation of DataNodes usage.- Returns:
- the DataNode usage information, as a JSON string.
-
getNumBlocks
long getNumBlocks()Get the number of blocks in the federation.- Returns:
- Number of blocks in the federation.
-
getNumOfMissingBlocks
long getNumOfMissingBlocks()Get the number of missing blocks in the federation.- Returns:
- Number of missing blocks in the federation.
-
getNumOfBlocksPendingReplication
long getNumOfBlocksPendingReplication()Get the number of pending replication blocks in the federation.- Returns:
- Number of pending replication blocks in the federation.
-
getNumOfBlocksUnderReplicated
long getNumOfBlocksUnderReplicated()Get the number of under replicated blocks in the federation.- Returns:
- Number of under replicated blocks in the federation.
-
getNumOfBlocksPendingDeletion
long getNumOfBlocksPendingDeletion()Get the number of pending deletion blocks in the federation.- Returns:
- Number of pending deletion blocks in the federation.
-
getNumFiles
long getNumFiles()Get the number of files in the federation.- Returns:
- Number of files in the federation.
-
getRouterStarted
Deprecated.UseRouterMBean.getRouterStarted()instead.When the router started.- Returns:
- Date as a string the router started.
-
getVersion
Deprecated.UseRouterMBean.getVersion()instead.Get the version of the router.- Returns:
- Version of the router.
-
getCompiledDate
Deprecated.UseRouterMBean.getCompiledDate()instead.Get the compilation date of the router.- Returns:
- Compilation date of the router.
-
getCompileInfo
Deprecated.UseRouterMBean.getCompileInfo()instead.Get the compilation info of the router.- Returns:
- Compilation info of the router.
-
getHostAndPort
Deprecated.UseRouterMBean.getHostAndPort()instead.Get the host and port of the router.- Returns:
- Host and port of the router.
-
getRouterId
Deprecated.UseRouterMBean.getRouterId()instead.Get the identifier of the router.- Returns:
- Identifier of the router.
-
getClusterId
String getClusterId()Deprecated.UseRouterMBean.getClusterId()instead.Gets the cluster ids of the namenodes.- Returns:
- the cluster ids of the namenodes.
-
getBlockPoolId
Deprecated.UseRouterMBean.getBlockPoolId()instead.Gets the block pool ids of the namenodes.- Returns:
- the block pool ids of the namenodes.
-
getRouterStatus
Deprecated.UseRouterMBean.getRouterStatus()instead.Get the current state of the router.- Returns:
- String label for the current router state.
-
getCurrentTokensCount
Deprecated.UseRouterMBean.getCurrentTokensCount()instead.Get the current number of delegation tokens in memory.- Returns:
- number of DTs
-
isSecurityEnabled
Deprecated.UseRouterMBean.isSecurityEnabled()instead.Get the security status of the router.- Returns:
- Security status.
-
getCorruptFilesCount
int getCorruptFilesCount()Get the number of corrupts files.- Returns:
- the total number of corrupt files.
-
getScheduledReplicationBlocks
long getScheduledReplicationBlocks()Blocks scheduled for replication.- Returns:
- num of blocks scheduled for replication.
-
getNumberOfMissingBlocksWithReplicationFactorOne
long getNumberOfMissingBlocksWithReplicationFactorOne()Gets the total number of missing blocks on the cluster with replication factor 1.- Returns:
- the total number of missing blocks on the cluster with replication factor 1.
-
getNumberOfBadlyDistributedBlocks
long getNumberOfBadlyDistributedBlocks()Gets the total number of badly distributed blocks.- Returns:
- the total number of badly distrubted blocks.
-
getHighestPriorityLowRedundancyReplicatedBlocks
long getHighestPriorityLowRedundancyReplicatedBlocks()Gets the total number of replicated low redundancy blocks on the cluster with the highest risk of loss.- Returns:
- the total number of low redundancy blocks on the cluster with the highest risk of loss.
-
getHighestPriorityLowRedundancyECBlocks
long getHighestPriorityLowRedundancyECBlocks()Gets the total number of erasure coded low redundancy blocks on the cluster with the highest risk of loss.- Returns:
- the total number of low redundancy blocks on the cluster with the highest risk of loss.
-
getPendingSPSPaths
int getPendingSPSPaths()Returns the number of paths to be processed by storage policy satisfier.- Returns:
- The number of paths to be processed by sps.
-
RouterMBean.getBlockPoolId()instead.