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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertSnapshot
(SpaceQuotaSnapshot snapshot) long
Get the hbase master active timedouble
Get Average LoadGet the Cluster IDString[]
Get the co-processorsGet the dead region serversGet the draining region serversboolean
Whether this master is the active masterlong
Get the time in Millis when the master finished initializing/becoming the active masterlong
Get the number of region merge plans executed.Gets the space usage and limit for each namespace.int
Get the number of dead region serversint
Get the number of draining region serversint
Get the number of live region serverslong
Get the number of master WAL files.long
Get the size of old WALs directory in bytes.Get the online and offline region countsGet the live region serversGet ServerNamelong
Get the number of region split plans executed.long
Get hbase master start timeGets the space usage and limit for each table.Get the ZooKeeper Quorum Infoboolean
Returns 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:MetricsMasterWrapper
Get Average Load- Specified by:
getAverageLoad
in interfaceMetricsMasterWrapper
- Returns:
- Average Load
-
getSplitPlanCount
Description copied from interface:MetricsMasterWrapper
Get the number of region split plans executed.- Specified by:
getSplitPlanCount
in interfaceMetricsMasterWrapper
-
getMergePlanCount
Description copied from interface:MetricsMasterWrapper
Get the number of region merge plans executed.- Specified by:
getMergePlanCount
in interfaceMetricsMasterWrapper
-
getMasterInitializationTime
Description copied from interface:MetricsMasterWrapper
Get the time in Millis when the master finished initializing/becoming the active master- Specified by:
getMasterInitializationTime
in interfaceMetricsMasterWrapper
-
getClusterId
Description copied from interface:MetricsMasterWrapper
Get the Cluster ID- Specified by:
getClusterId
in interfaceMetricsMasterWrapper
- Returns:
- Cluster ID
-
getZookeeperQuorum
Description copied from interface:MetricsMasterWrapper
Get the ZooKeeper Quorum Info- Specified by:
getZookeeperQuorum
in interfaceMetricsMasterWrapper
- Returns:
- ZooKeeper Quorum Info
-
getCoprocessors
Description copied from interface:MetricsMasterWrapper
Get the co-processors- Specified by:
getCoprocessors
in interfaceMetricsMasterWrapper
- Returns:
- Co-processors
-
getStartTime
Description copied from interface:MetricsMasterWrapper
Get hbase master start time- Specified by:
getStartTime
in interfaceMetricsMasterWrapper
- Returns:
- Start time of master in milliseconds
-
getActiveTime
Description copied from interface:MetricsMasterWrapper
Get the hbase master active time- Specified by:
getActiveTime
in interfaceMetricsMasterWrapper
- Returns:
- Time in milliseconds when master became active
-
getRegionServers
Description copied from interface:MetricsMasterWrapper
Get the live region servers- Specified by:
getRegionServers
in interfaceMetricsMasterWrapper
- Returns:
- Live region servers
-
getNumRegionServers
Description copied from interface:MetricsMasterWrapper
Get the number of live region servers- Specified by:
getNumRegionServers
in interfaceMetricsMasterWrapper
- Returns:
- number of Live region servers
-
getDeadRegionServers
Description copied from interface:MetricsMasterWrapper
Get the dead region servers- Specified by:
getDeadRegionServers
in interfaceMetricsMasterWrapper
- Returns:
- Dead region Servers
-
getNumDeadRegionServers
Description copied from interface:MetricsMasterWrapper
Get the number of dead region servers- Specified by:
getNumDeadRegionServers
in interfaceMetricsMasterWrapper
- Returns:
- number of Dead region Servers
-
isRunning
Description copied from interface:MetricsMasterWrapper
Returns if the master is currently running and is not attempting to shutdown.- Specified by:
isRunning
in interfaceMetricsMasterWrapper
-
getDrainingRegionServers
Description copied from interface:MetricsMasterWrapper
Get the draining region servers- Specified by:
getDrainingRegionServers
in interfaceMetricsMasterWrapper
- Returns:
- Draining region server
-
getNumDrainingRegionServers
Description copied from interface:MetricsMasterWrapper
Get the number of draining region servers- Specified by:
getNumDrainingRegionServers
in interfaceMetricsMasterWrapper
- Returns:
- number of draining region servers
-
getServerName
Description copied from interface:MetricsMasterWrapper
Get ServerName- Specified by:
getServerName
in interfaceMetricsMasterWrapper
-
getIsActiveMaster
Description copied from interface:MetricsMasterWrapper
Whether this master is the active master- Specified by:
getIsActiveMaster
in interfaceMetricsMasterWrapper
- Returns:
- True if this is the active master
-
getNumWALFiles
Description copied from interface:MetricsMasterWrapper
Get the number of master WAL files.- Specified by:
getNumWALFiles
in interfaceMetricsMasterWrapper
-
getTableSpaceUtilization
Description copied from interface:MetricsMasterWrapper
Gets the space usage and limit for each table.- Specified by:
getTableSpaceUtilization
in interfaceMetricsMasterWrapper
-
getNamespaceSpaceUtilization
Description copied from interface:MetricsMasterWrapper
Gets the space usage and limit for each namespace.- Specified by:
getNamespaceSpaceUtilization
in interfaceMetricsMasterWrapper
-
convertSnapshot
-
getRegionCounts
Description copied from interface:MetricsMasterWrapper
Get the online and offline region counts- Specified by:
getRegionCounts
in interfaceMetricsMasterWrapper
- Returns:
- pair of count for online regions and offline regions
-
getOldWALsDirSize
Description copied from interface:MetricsMasterWrapper
Get the size of old WALs directory in bytes.- Specified by:
getOldWALsDirSize
in interfaceMetricsMasterWrapper
-