@InterfaceAudience.Public @InterfaceStability.Evolving public class ClusterStatus extends VersionedWritable
ClusterStatus provides clients with information such as:
Constructor and Description |
---|
ClusterStatus()
Deprecated.
As of release 0.96
(HBASE-6038).
This will be removed in HBase 2.0.0.
Used by Writables and Writables are going away.
|
ClusterStatus(String hbaseVersion,
String clusterid,
Map<ServerName,ServerLoad> servers,
Collection<ServerName> deadServers,
ServerName master,
Collection<ServerName> backupMasters,
Map<String,RegionState> rit,
String[] masterCoprocessors,
Boolean balancerOn) |
@Deprecated public ClusterStatus()
public ClusterStatus(String hbaseVersion, String clusterid, Map<ServerName,ServerLoad> servers, Collection<ServerName> deadServers, ServerName master, Collection<ServerName> backupMasters, Map<String,RegionState> rit, String[] masterCoprocessors, Boolean balancerOn)
public Collection<ServerName> getDeadServerNames()
public int getServersSize()
public int getDeadServers()
public double getAverageLoad()
public int getRegionsCount()
public int getRequestsCount()
public String getHBaseVersion()
public boolean equals(Object o)
Object.equals(java.lang.Object)
public int hashCode()
Object.hashCode()
public byte getVersion()
@Deprecated public Collection<ServerName> getServerInfo()
getServers()
.ServerName
.public Collection<ServerName> getServers()
public ServerName getMaster()
ServerName
.public int getBackupMastersSize()
public Collection<ServerName> getBackupMasters()
public ServerLoad getLoad(ServerName sn)
sn
- @InterfaceAudience.Private public Map<String,RegionState> getRegionsInTransition()
public String getClusterId()
public String[] getMasterCoprocessors()
public long getLastMajorCompactionTsForTable(TableName table)
public long getLastMajorCompactionTsForRegion(byte[] region)
public boolean isBalancerOn()
public Boolean getBalancerOn()
public String toString()
public ClusterStatusProtos.ClusterStatus convert()
public static ClusterStatus convert(ClusterStatusProtos.ClusterStatus proto)
proto
- the protobuf ClusterStatus