@InterfaceAudience.Public @InterfaceStability.Evolving public class ClusterStatus extends org.apache.hadoop.io.VersionedWritable
ClusterStatus provides clients with information such as:
Modifier and Type | Field and Description |
---|---|
private Collection<ServerName> |
backupMasters |
private Boolean |
balancerOn |
private String |
clusterId |
private Collection<ServerName> |
deadServers |
private String |
hbaseVersion |
private Map<String,RegionState> |
intransition |
private Map<ServerName,ServerLoad> |
liveServers |
private ServerName |
master |
private String[] |
masterCoprocessors |
private static byte |
VERSION
Version for object serialization.
|
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) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ClusterStatus |
convert()
Convert a ClusterStatus to a protobuf ClusterStatus
|
static ClusterStatus |
convert(org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ClusterStatus proto)
Convert a protobuf ClusterStatus to a ClusterStatus
|
boolean |
equals(Object o) |
double |
getAverageLoad() |
Collection<ServerName> |
getBackupMasters() |
int |
getBackupMastersSize() |
Boolean |
getBalancerOn() |
String |
getClusterId() |
Collection<ServerName> |
getDeadServerNames() |
int |
getDeadServers() |
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() |
Map<String,RegionState> |
getRegionsInTransition() |
int |
getRequestsCount() |
Collection<ServerName> |
getServerInfo()
Deprecated.
As of release 0.92
(HBASE-1502).
This will be removed in HBase 2.0.0.
Use
getServers() . |
Collection<ServerName> |
getServers() |
int |
getServersSize() |
byte |
getVersion() |
int |
hashCode() |
boolean |
isBalancerOn() |
String |
toString() |
private static final byte VERSION
private String hbaseVersion
private Map<ServerName,ServerLoad> liveServers
private Collection<ServerName> deadServers
private ServerName master
private Collection<ServerName> backupMasters
private Map<String,RegionState> intransition
private String clusterId
private String[] masterCoprocessors
private 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)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public byte getVersion()
getVersion
in class org.apache.hadoop.io.VersionedWritable
@Deprecated public Collection<ServerName> getServerInfo()
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 org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ClusterStatus convert()
public static ClusterStatus convert(org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ClusterStatus proto)
proto
- the protobuf ClusterStatusCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.