Interface MetricsMasterWrapper

All Known Implementing Classes:
MetricsMasterWrapperImpl

@Private public interface MetricsMasterWrapper
This is the interface that will expose information to hadoop1/hadoop2 implementations of the MetricsMasterSource.
  • Method Details

    • isRunning

      boolean isRunning()
      Returns if the master is currently running and is not attempting to shutdown.
    • getServerName

      Get ServerName
    • getAverageLoad

      double getAverageLoad()
      Get Average Load
      Returns:
      Average Load
    • getClusterId

      Get the Cluster ID
      Returns:
      Cluster ID
    • getZookeeperQuorum

      Get the ZooKeeper Quorum Info
      Returns:
      ZooKeeper Quorum Info
    • getCoprocessors

      Get the co-processors
      Returns:
      Co-processors
    • getStartTime

      long getStartTime()
      Get hbase master start time
      Returns:
      Start time of master in milliseconds
    • getActiveTime

      Get the hbase master active time
      Returns:
      Time in milliseconds when master became active
    • getIsActiveMaster

      Whether this master is the active master
      Returns:
      True if this is the active master
    • getRegionServers

      Get the live region servers
      Returns:
      Live region servers
    • getNumRegionServers

      Get the number of live region servers
      Returns:
      number of Live region servers
    • getDeadRegionServers

      Get the dead region servers
      Returns:
      Dead region Servers
    • getNumDeadRegionServers

      Get the number of dead region servers
      Returns:
      number of Dead region Servers
    • getDrainingRegionServers

      Get the draining region servers
      Returns:
      Draining region server
    • getNumDrainingRegionServers

      Get the number of draining region servers
      Returns:
      number of draining region servers
    • getNumWALFiles

      Get the number of master WAL files.
    • getOldestProcedureAgeByType

      Get the age in milliseconds of the oldest active master procedure for each procedure type, keyed by the procedure's simple class name.
    • getSplitPlanCount

      Get the number of region split plans executed.
    • getMergePlanCount

      Get the number of region merge plans executed.
    • getTableSpaceUtilization

      Gets the space usage and limit for each table.
    • getNamespaceSpaceUtilization

      Gets the space usage and limit for each namespace.
    • getMasterInitializationTime

      Get the time in Millis when the master finished initializing/becoming the active master
    • getRegionCounts

      Get the online and offline region counts
      Returns:
      pair of count for online regions and offline regions
    • getOldWALsDirSize

      Get the size of old WALs directory in bytes.
    • getSwitchStates

      Returns known switch states (1 enabled, 0 disabled), or an empty map unless this Master is active and initialized. Unavailable states are omitted. Implementations must not perform remote reads.