Package org.apache.hadoop.hbase.master
Class MetricsMasterWrapperImpl
java.lang.Object
org.apache.hadoop.hbase.master.MetricsMasterWrapperImpl
- All Implemented Interfaces:
MetricsMasterWrapper
Impl for exposing HMaster Information through JMX
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertSnapshot(SpaceQuotaSnapshot snapshot) longGet the hbase master active timedoubleGet Average LoadGet the Cluster IDString[]Get the co-processorsGet the dead region serversGet the draining region serversbooleanWhether this master is the active masterlongGet the time in Millis when the master finished initializing/becoming the active masterlongGet the number of region merge plans executed.Gets the space usage and limit for each namespace.intGet the number of dead region serversintGet the number of draining region serversintGet the number of live region serverslongGet the number of master WAL files.longGet the size of old WALs directory in bytes.Get the online and offline region countsGet the live region serversGet ServerNamelongGet the number of region split plans executed.longGet hbase master start timeGets the space usage and limit for each table.Get the ZooKeeper Quorum InfobooleanReturns if the master is currently running and is not attempting to shutdown.
-
Field Details
-
master
-
-
Constructor Details
-
MetricsMasterWrapperImpl
-
-
Method Details
-
getAverageLoad
Description copied from interface:MetricsMasterWrapperGet Average Load- Specified by:
getAverageLoadin interfaceMetricsMasterWrapper- Returns:
- Average Load
-
getSplitPlanCount
Description copied from interface:MetricsMasterWrapperGet the number of region split plans executed.- Specified by:
getSplitPlanCountin interfaceMetricsMasterWrapper
-
getMergePlanCount
Description copied from interface:MetricsMasterWrapperGet the number of region merge plans executed.- Specified by:
getMergePlanCountin interfaceMetricsMasterWrapper
-
getMasterInitializationTime
Description copied from interface:MetricsMasterWrapperGet the time in Millis when the master finished initializing/becoming the active master- Specified by:
getMasterInitializationTimein interfaceMetricsMasterWrapper
-
getClusterId
Description copied from interface:MetricsMasterWrapperGet the Cluster ID- Specified by:
getClusterIdin interfaceMetricsMasterWrapper- Returns:
- Cluster ID
-
getZookeeperQuorum
Description copied from interface:MetricsMasterWrapperGet the ZooKeeper Quorum Info- Specified by:
getZookeeperQuorumin interfaceMetricsMasterWrapper- Returns:
- ZooKeeper Quorum Info
-
getCoprocessors
Description copied from interface:MetricsMasterWrapperGet the co-processors- Specified by:
getCoprocessorsin interfaceMetricsMasterWrapper- Returns:
- Co-processors
-
getStartTime
Description copied from interface:MetricsMasterWrapperGet hbase master start time- Specified by:
getStartTimein interfaceMetricsMasterWrapper- Returns:
- Start time of master in milliseconds
-
getActiveTime
Description copied from interface:MetricsMasterWrapperGet the hbase master active time- Specified by:
getActiveTimein interfaceMetricsMasterWrapper- Returns:
- Time in milliseconds when master became active
-
getRegionServers
Description copied from interface:MetricsMasterWrapperGet the live region servers- Specified by:
getRegionServersin interfaceMetricsMasterWrapper- Returns:
- Live region servers
-
getNumRegionServers
Description copied from interface:MetricsMasterWrapperGet the number of live region servers- Specified by:
getNumRegionServersin interfaceMetricsMasterWrapper- Returns:
- number of Live region servers
-
getDeadRegionServers
Description copied from interface:MetricsMasterWrapperGet the dead region servers- Specified by:
getDeadRegionServersin interfaceMetricsMasterWrapper- Returns:
- Dead region Servers
-
getNumDeadRegionServers
Description copied from interface:MetricsMasterWrapperGet the number of dead region servers- Specified by:
getNumDeadRegionServersin interfaceMetricsMasterWrapper- Returns:
- number of Dead region Servers
-
isRunning
Description copied from interface:MetricsMasterWrapperReturns if the master is currently running and is not attempting to shutdown.- Specified by:
isRunningin interfaceMetricsMasterWrapper
-
getDrainingRegionServers
Description copied from interface:MetricsMasterWrapperGet the draining region servers- Specified by:
getDrainingRegionServersin interfaceMetricsMasterWrapper- Returns:
- Draining region server
-
getNumDrainingRegionServers
Description copied from interface:MetricsMasterWrapperGet the number of draining region servers- Specified by:
getNumDrainingRegionServersin interfaceMetricsMasterWrapper- Returns:
- number of draining region servers
-
getServerName
Description copied from interface:MetricsMasterWrapperGet ServerName- Specified by:
getServerNamein interfaceMetricsMasterWrapper
-
getIsActiveMaster
Description copied from interface:MetricsMasterWrapperWhether this master is the active master- Specified by:
getIsActiveMasterin interfaceMetricsMasterWrapper- Returns:
- True if this is the active master
-
getNumWALFiles
Description copied from interface:MetricsMasterWrapperGet the number of master WAL files.- Specified by:
getNumWALFilesin interfaceMetricsMasterWrapper
-
getTableSpaceUtilization
Description copied from interface:MetricsMasterWrapperGets the space usage and limit for each table.- Specified by:
getTableSpaceUtilizationin interfaceMetricsMasterWrapper
-
getNamespaceSpaceUtilization
Description copied from interface:MetricsMasterWrapperGets the space usage and limit for each namespace.- Specified by:
getNamespaceSpaceUtilizationin interfaceMetricsMasterWrapper
-
convertSnapshot
-
getRegionCounts
Description copied from interface:MetricsMasterWrapperGet the online and offline region counts- Specified by:
getRegionCountsin interfaceMetricsMasterWrapper- Returns:
- pair of count for online regions and offline regions
-
getOldWALsDirSize
Description copied from interface:MetricsMasterWrapperGet the size of old WALs directory in bytes.- Specified by:
getOldWALsDirSizein interfaceMetricsMasterWrapper
-