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
FieldsModifier and TypeFieldDescriptionprivate final List<ServerName>private final Booleanprivate final Stringprivate final List<ServerName>private final List<ServerName>private final Stringprivate final Map<ServerName,ServerMetrics> private final intprivate final ServerNameprivate final List<ServerTask>private final List<RegionState>private final List<ServerName>private final Map<TableName,RegionStatesCount> private final List<ServerName> -
Constructor Summary
ConstructorsConstructorDescriptionClusterMetricsImpl(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, List<ServerName> decommissionedServerNames) -
Method Summary
Modifier and TypeMethodDescriptionReturns the names of backup mastersReturns the names of region servers on the dead listReturns the names of region servers on the decommissioned listReturns the HBase version string as reported by the HMasterReturns the names of region servers on the live listintReturns 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, waitMethods inherited from interface org.apache.hadoop.hbase.ClusterMetrics
getAverageLoad, getLastMajorCompactionTimestamp, getLastMajorCompactionTimestamp, getRegionCount, getRequestCount
-
Field Details
-
hbaseVersion
-
deadServerNames
-
unknownServerNames
-
decommissionedServerNames
-
liveServerMetrics
-
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, List<ServerName> decommissionedServerNames)
-
-
Method Details
-
getHBaseVersion
Description copied from interface:ClusterMetricsReturns the HBase version string as reported by the HMaster- Specified by:
getHBaseVersionin interfaceClusterMetrics
-
getDeadServerNames
Description copied from interface:ClusterMetricsReturns the names of region servers on the dead list- Specified by:
getDeadServerNamesin interfaceClusterMetrics
-
getUnknownServerNames
Description copied from interface:ClusterMetricsReturns the names of region servers on the unknown list- Specified by:
getUnknownServerNamesin interfaceClusterMetrics
-
getDecommissionedServerNames
Description copied from interface:ClusterMetricsReturns the names of region servers on the decommissioned list- Specified by:
getDecommissionedServerNamesin interfaceClusterMetrics
-
getLiveServerMetrics
Description copied from interface:ClusterMetricsReturns the names of region servers on the live list- Specified by:
getLiveServerMetricsin interfaceClusterMetrics
-
getMasterName
Description copied from interface:ClusterMetricsReturns detailed information about the current masterServerName.- Specified by:
getMasterNamein interfaceClusterMetrics- Returns:
- current master information if it exists
-
getBackupMasterNames
Description copied from interface:ClusterMetricsReturns the names of backup masters- Specified by:
getBackupMasterNamesin interfaceClusterMetrics
-
getRegionStatesInTransition
- Specified by:
getRegionStatesInTransitionin interfaceClusterMetrics
-
getClusterId
- Specified by:
getClusterIdin interfaceClusterMetrics
-
getMasterCoprocessorNames
- Specified by:
getMasterCoprocessorNamesin interfaceClusterMetrics
-
getBalancerOn
- Specified by:
getBalancerOnin interfaceClusterMetrics
-
getMasterInfoPort
- Specified by:
getMasterInfoPortin interfaceClusterMetrics
-
getServersName
- Specified by:
getServersNamein interfaceClusterMetrics
-
getTableRegionStatesCount
Description copied from interface:ClusterMetricsProvide region states count for given table. e.g howmany regions of give table are opened/closed/rit etc- Specified by:
getTableRegionStatesCountin interfaceClusterMetrics- Returns:
- map of table to region states count
-
getMasterTasks
Description copied from interface:ClusterMetricsProvide the list of master tasks- Specified by:
getMasterTasksin interfaceClusterMetrics
-
toString
-