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 |
| 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) |
| 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() |
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
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)
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 ClusterMetricsCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.