Interface FederationMBean

All Known Implementing Classes:
RBFMetrics

@Private @Evolving public interface FederationMBean
JMX interface for the federation statistics.
  • 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 use getTotalCapacityBigInt() 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 use getUsedCapacityBigInt() 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 use getRemainingCapacityBigInt() 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 String getRouterStarted()
      Deprecated.
      When the router started.
      Returns:
      Date as a string the router started.
    • getVersion

      @Deprecated String getVersion()
      Deprecated.
      Get the version of the router.
      Returns:
      Version of the router.
    • getCompiledDate

      @Deprecated String getCompiledDate()
      Deprecated.
      Get the compilation date of the router.
      Returns:
      Compilation date of the router.
    • getCompileInfo

      @Deprecated String getCompileInfo()
      Deprecated.
      Get the compilation info of the router.
      Returns:
      Compilation info of the router.
    • getHostAndPort

      @Deprecated String getHostAndPort()
      Deprecated.
      Get the host and port of the router.
      Returns:
      Host and port of the router.
    • getRouterId

      @Deprecated String getRouterId()
      Deprecated.
      Get the identifier of the router.
      Returns:
      Identifier of the router.
    • getClusterId

      String getClusterId()
      Deprecated.
      Gets the cluster ids of the namenodes.
      Returns:
      the cluster ids of the namenodes.
    • getBlockPoolId

      @Deprecated String getBlockPoolId()
      Deprecated.
      Gets the block pool ids of the namenodes.
      Returns:
      the block pool ids of the namenodes.
    • getRouterStatus

      @Deprecated String getRouterStatus()
      Deprecated.
      Get the current state of the router.
      Returns:
      String label for the current router state.
    • getCurrentTokensCount

      @Deprecated long getCurrentTokensCount()
      Deprecated.
      Get the current number of delegation tokens in memory.
      Returns:
      number of DTs
    • isSecurityEnabled

      @Deprecated boolean isSecurityEnabled()
      Deprecated.
      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.