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, wait
getAverageLoad, 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 ClusterMetrics
public List<ServerName> getDeadServerNames()
getDeadServerNames
in interface ClusterMetrics
public Map<ServerName,ServerMetrics> getLiveServerMetrics()
getLiveServerMetrics
in interface ClusterMetrics
public ServerName getMasterName()
ClusterMetrics
ServerName
.getMasterName
in interface ClusterMetrics
public List<ServerName> getBackupMasterNames()
getBackupMasterNames
in interface ClusterMetrics
public List<RegionState> getRegionStatesInTransition()
getRegionStatesInTransition
in interface ClusterMetrics
public String getClusterId()
getClusterId
in interface ClusterMetrics
public List<String> getMasterCoprocessorNames()
getMasterCoprocessorNames
in interface ClusterMetrics
public Boolean getBalancerOn()
getBalancerOn
in interface ClusterMetrics
public int getMasterInfoPort()
getMasterInfoPort
in interface ClusterMetrics
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.