private static class ClusterMetricsBuilder.ClusterMetricsImpl extends Object implements ClusterMetrics
ClusterMetrics.Option| Modifier and Type | Field and Description | 
|---|---|
private List<ServerName> | 
backupMasterNames  | 
private Boolean | 
balancerOn  | 
private String | 
clusterId  | 
private List<ServerName> | 
deadServerNames  | 
private String | 
hbaseVersion  | 
private Map<ServerName,ServerMetrics> | 
liveServerMetrics  | 
private List<String> | 
masterCoprocessorNames  | 
private int | 
masterInfoPort  | 
private ServerName | 
masterName  | 
private List<RegionState> | 
regionsInTransition  | 
private List<ServerName> | 
serversName  | 
private Map<TableName,RegionStatesCount> | 
tableRegionStatesCount  | 
| Constructor and Description | 
|---|
ClusterMetricsImpl(String hbaseVersion,
                  List<ServerName> deadServerNames,
                  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)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<ServerName> | 
getBackupMasterNames()  | 
Boolean | 
getBalancerOn()  | 
String | 
getClusterId()  | 
List<ServerName> | 
getDeadServerNames()  | 
String | 
getHBaseVersion()  | 
Map<ServerName,ServerMetrics> | 
getLiveServerMetrics()  | 
List<String> | 
getMasterCoprocessorNames()  | 
int | 
getMasterInfoPort()  | 
ServerName | 
getMasterName()
Returns detailed information about the current master  
ServerName. | 
List<RegionState> | 
getRegionStatesInTransition()  | 
List<ServerName> | 
getServersName()  | 
Map<TableName,RegionStatesCount> | 
getTableRegionStatesCount()
Provide region states count for given table. 
 | 
String | 
toString()  | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAverageLoad, getLastMajorCompactionTimestamp, getLastMajorCompactionTimestamp, getRegionCount, getRequestCount@Nullable private final String hbaseVersion
private final List<ServerName> deadServerNames
private final Map<ServerName,ServerMetrics> liveServerMetrics
@Nullable private final ServerName masterName
private final List<ServerName> backupMasterNames
private final List<RegionState> regionsInTransition
private final List<String> masterCoprocessorNames
@Nullable private final Boolean balancerOn
private final int masterInfoPort
private final List<ServerName> serversName
private final Map<TableName,RegionStatesCount> tableRegionStatesCount
ClusterMetricsImpl(String hbaseVersion, List<ServerName> deadServerNames, 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)
public String getHBaseVersion()
getHBaseVersion in interface ClusterMetricspublic List<ServerName> getDeadServerNames()
getDeadServerNames in interface ClusterMetricspublic Map<ServerName,ServerMetrics> getLiveServerMetrics()
getLiveServerMetrics in interface ClusterMetricspublic ServerName getMasterName()
ClusterMetricsServerName.getMasterName in interface ClusterMetricspublic List<ServerName> getBackupMasterNames()
getBackupMasterNames in interface ClusterMetricspublic List<RegionState> getRegionStatesInTransition()
getRegionStatesInTransition in interface ClusterMetricspublic String getClusterId()
getClusterId in interface ClusterMetricspublic List<String> getMasterCoprocessorNames()
getMasterCoprocessorNames in interface ClusterMetricspublic Boolean getBalancerOn()
getBalancerOn in interface ClusterMetricspublic int getMasterInfoPort()
getMasterInfoPort in interface ClusterMetricspublic List<ServerName> getServersName()
getServersName in interface ClusterMetricspublic Map<TableName,RegionStatesCount> getTableRegionStatesCount()
ClusterMetricsgetTableRegionStatesCount in interface ClusterMetricsCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.