@InterfaceAudience.Public public class ClusterStatus extends org.apache.hadoop.io.VersionedWritable
ClusterStatus provides clients with information such as:
| Constructor and Description |
|---|
ClusterStatus(String hbaseVersion,
String clusterid,
Map<ServerName,ServerLoad> servers,
Collection<ServerName> deadServers,
ServerName master,
Collection<ServerName> backupMasters,
List<RegionState> rit,
String[] masterCoprocessors,
Boolean balancerOn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
double |
getAverageLoad() |
Collection<ServerName> |
getBackupMasters() |
int |
getBackupMastersSize() |
Boolean |
getBalancerOn() |
String |
getClusterId() |
Collection<ServerName> |
getDeadServerNames() |
int |
getDeadServers()
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13656).
Use
getDeadServersSize(). |
int |
getDeadServersSize() |
String |
getHBaseVersion() |
long |
getLastMajorCompactionTsForRegion(byte[] region) |
long |
getLastMajorCompactionTsForTable(TableName table) |
ServerLoad |
getLoad(ServerName sn) |
ServerName |
getMaster()
Returns detailed information about the current master
ServerName. |
String[] |
getMasterCoprocessors() |
int |
getRegionsCount() |
List<RegionState> |
getRegionsInTransition() |
int |
getRequestsCount() |
Collection<ServerName> |
getServers() |
int |
getServersSize() |
byte |
getVersion() |
int |
hashCode() |
boolean |
isBalancerOn() |
String |
toString() |
public ClusterStatus(String hbaseVersion, String clusterid, Map<ServerName,ServerLoad> servers, Collection<ServerName> deadServers, ServerName master, Collection<ServerName> backupMasters, List<RegionState> rit, String[] masterCoprocessors, Boolean balancerOn)
public Collection<ServerName> getDeadServerNames()
public int getServersSize()
@Deprecated public int getDeadServers()
getDeadServersSize().public int getDeadServersSize()
public double getAverageLoad()
public int getRegionsCount()
public int getRequestsCount()
public String getHBaseVersion()
public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public byte getVersion()
getVersion in class org.apache.hadoop.io.VersionedWritablepublic Collection<ServerName> getServers()
public ServerName getMaster()
ServerName.public int getBackupMastersSize()
public Collection<ServerName> getBackupMasters()
public ServerLoad getLoad(ServerName sn)
sn - @InterfaceAudience.Private public List<RegionState> getRegionsInTransition()
public String getClusterId()
public String[] getMasterCoprocessors()
public long getLastMajorCompactionTsForTable(TableName table)
public long getLastMajorCompactionTsForRegion(byte[] region)
public boolean isBalancerOn()
public Boolean getBalancerOn()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.