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<ServerTask> |
masterTasks |
private List<RegionState> |
regionsInTransition |
private List<ServerName> |
serversName |
private Map<TableName,RegionStatesCount> |
tableRegionStatesCount |
private List<ServerName> |
unknownServerNames |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
List<ServerName> |
getBackupMasterNames()
Returns the names of backup masters
|
Boolean |
getBalancerOn() |
String |
getClusterId() |
List<ServerName> |
getDeadServerNames()
Returns the names of region servers on the dead list
|
String |
getHBaseVersion()
Returns the HBase version string as reported by the HMaster
|
Map<ServerName,ServerMetrics> |
getLiveServerMetrics()
Returns the names of region servers on the live list
|
List<String> |
getMasterCoprocessorNames() |
int |
getMasterInfoPort() |
ServerName |
getMasterName()
Returns detailed information about the current master
ServerName . |
List<ServerTask> |
getMasterTasks()
Provide the list of master tasks
|
List<RegionState> |
getRegionStatesInTransition() |
List<ServerName> |
getServersName() |
Map<TableName,RegionStatesCount> |
getTableRegionStatesCount()
Provide region states count for given table.
|
List<ServerName> |
getUnknownServerNames()
Returns the names of region servers on the unknown list
|
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
private final List<ServerName> unknownServerNames
@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
private final List<ServerTask> masterTasks
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)
public String getHBaseVersion()
ClusterMetrics
getHBaseVersion
in interface ClusterMetrics
public List<ServerName> getDeadServerNames()
ClusterMetrics
getDeadServerNames
in interface ClusterMetrics
public List<ServerName> getUnknownServerNames()
ClusterMetrics
getUnknownServerNames
in interface ClusterMetrics
public Map<ServerName,ServerMetrics> getLiveServerMetrics()
ClusterMetrics
getLiveServerMetrics
in interface ClusterMetrics
public ServerName getMasterName()
ClusterMetrics
ServerName
.getMasterName
in interface ClusterMetrics
public List<ServerName> getBackupMasterNames()
ClusterMetrics
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
public List<ServerTask> getMasterTasks()
ClusterMetrics
getMasterTasks
in interface ClusterMetrics
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.