Package org.apache.hadoop.hbase
Class ClusterMetricsBuilder.ClusterMetricsImpl
java.lang.Object
org.apache.hadoop.hbase.ClusterMetricsBuilder.ClusterMetricsImpl
- All Implemented Interfaces:
ClusterMetrics
- Enclosing class:
- ClusterMetricsBuilder
private static class ClusterMetricsBuilder.ClusterMetricsImpl
extends Object
implements ClusterMetrics
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.ClusterMetrics
ClusterMetrics.Option
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<ServerName>
private final Boolean
private final String
private final List<ServerName>
private final String
private final Map<ServerName,
ServerMetrics> private final int
private final ServerName
private final List<ServerTask>
private final List<RegionState>
private final List<ServerName>
private final Map<TableName,
RegionStatesCount> private final List<ServerName>
-
Constructor Summary
ConstructorDescriptionClusterMetricsImpl
(String hbaseVersion, List<ServerName> deadServerNames, List<ServerName> unknownServerNames, Map<ServerName, ServerMetrics> liveServerMetrics, ServerName masterName, List<ServerName> backupMasterNames, List<RegionState> regionsInTransition, String clusterId, List<String> masterCoprocessorNames, Boolean balancerOn, int masterInfoPort, List<ServerName> serversName, Map<TableName, RegionStatesCount> tableRegionStatesCount, List<ServerTask> masterTasks) -
Method Summary
Modifier and TypeMethodDescriptionReturns the names of backup mastersReturns the names of region servers on the dead listReturns the HBase version string as reported by the HMasterReturns the names of region servers on the live listint
Returns detailed information about the current masterServerName
.Provide the list of master tasksProvide region states count for given table.Returns the names of region servers on the unknown listtoString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.ClusterMetrics
getAverageLoad, getLastMajorCompactionTimestamp, getLastMajorCompactionTimestamp, getRegionCount, getRequestCount
-
Field Details
-
hbaseVersion
-
deadServerNames
-
liveServerMetrics
-
unknownServerNames
-
masterName
-
backupMasterNames
-
regionsInTransition
-
clusterId
-
masterCoprocessorNames
-
balancerOn
-
masterInfoPort
-
serversName
-
tableRegionStatesCount
-
masterTasks
-
-
Constructor Details
-
ClusterMetricsImpl
ClusterMetricsImpl(String hbaseVersion, List<ServerName> deadServerNames, List<ServerName> unknownServerNames, Map<ServerName, ServerMetrics> liveServerMetrics, ServerName masterName, List<ServerName> backupMasterNames, List<RegionState> regionsInTransition, String clusterId, List<String> masterCoprocessorNames, Boolean balancerOn, int masterInfoPort, List<ServerName> serversName, Map<TableName, RegionStatesCount> tableRegionStatesCount, List<ServerTask> masterTasks)
-
-
Method Details
-
getHBaseVersion
Description copied from interface:ClusterMetrics
Returns the HBase version string as reported by the HMaster- Specified by:
getHBaseVersion
in interfaceClusterMetrics
-
getDeadServerNames
Description copied from interface:ClusterMetrics
Returns the names of region servers on the dead list- Specified by:
getDeadServerNames
in interfaceClusterMetrics
-
getUnknownServerNames
Description copied from interface:ClusterMetrics
Returns the names of region servers on the unknown list- Specified by:
getUnknownServerNames
in interfaceClusterMetrics
-
getLiveServerMetrics
Description copied from interface:ClusterMetrics
Returns the names of region servers on the live list- Specified by:
getLiveServerMetrics
in interfaceClusterMetrics
-
getMasterName
Description copied from interface:ClusterMetrics
Returns detailed information about the current masterServerName
.- Specified by:
getMasterName
in interfaceClusterMetrics
- Returns:
- current master information if it exists
-
getBackupMasterNames
Description copied from interface:ClusterMetrics
Returns the names of backup masters- Specified by:
getBackupMasterNames
in interfaceClusterMetrics
-
getRegionStatesInTransition
- Specified by:
getRegionStatesInTransition
in interfaceClusterMetrics
-
getClusterId
- Specified by:
getClusterId
in interfaceClusterMetrics
-
getMasterCoprocessorNames
- Specified by:
getMasterCoprocessorNames
in interfaceClusterMetrics
-
getBalancerOn
- Specified by:
getBalancerOn
in interfaceClusterMetrics
-
getMasterInfoPort
- Specified by:
getMasterInfoPort
in interfaceClusterMetrics
-
getServersName
- Specified by:
getServersName
in interfaceClusterMetrics
-
getTableRegionStatesCount
Description copied from interface:ClusterMetrics
Provide region states count for given table. e.g howmany regions of give table are opened/closed/rit etc- Specified by:
getTableRegionStatesCount
in interfaceClusterMetrics
- Returns:
- map of table to region states count
-
getMasterTasks
Description copied from interface:ClusterMetrics
Provide the list of master tasks- Specified by:
getMasterTasks
in interfaceClusterMetrics
-
toString
-