Package org.apache.hadoop.hbase.master
Interface MetricsMasterWrapper
- All Known Implementing Classes:
MetricsMasterWrapperImpl
This is the interface that will expose information to hadoop1/hadoop2 implementations of the
MetricsMasterSource.
-
Method Summary
Modifier and TypeMethodDescriptionlong
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.
-
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
long getActiveTime()Get the hbase master active time- Returns:
- Time in milliseconds when master became active
-
getIsActiveMaster
boolean 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
int 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
int 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
long getNumWALFiles()Get the number of master WAL files. -
getSplitPlanCount
long getSplitPlanCount()Get the number of region split plans executed. -
getMergePlanCount
long 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
long 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
long getOldWALsDirSize()Get the size of old WALs directory in bytes.
-