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, 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
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 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
public List<ServerName> getServersName()
getServersName
in interface ClusterMetrics
public Map<TableName,RegionStatesCount> getTableRegionStatesCount()
ClusterMetrics
getTableRegionStatesCount
in interface ClusterMetrics
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.