public class ClusterStatus
extends org.apache.hadoop.io.VersionedWritable
ClusterStatus provides clients with information such as:
Constructor and Description |
---|
ClusterStatus()
Constructor, for Writable
|
ClusterStatus(String hbaseVersion,
String clusterid,
Map<ServerName,HServerLoad> servers,
Collection<ServerName> deadServers,
ServerName master,
Collection<ServerName> backupMasters,
Map<String,AssignmentManager.RegionState> rit,
String[] masterCoprocessors) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
double |
getAverageLoad() |
Collection<ServerName> |
getBackupMasters() |
int |
getBackupMastersSize() |
String |
getClusterId() |
Collection<ServerName> |
getDeadServerNames() |
int |
getDeadServers() |
String |
getHBaseVersion() |
HServerLoad |
getLoad(ServerName sn) |
ServerName |
getMaster()
Returns detailed information about the current master
ServerName . |
String[] |
getMasterCoprocessors() |
int |
getRegionsCount() |
Map<String,AssignmentManager.RegionState> |
getRegionsInTransition() |
int |
getRequestsCount() |
Collection<ServerName> |
getServerInfo()
Deprecated.
Use
getServers() |
Collection<ServerName> |
getServers() |
int |
getServersSize() |
byte |
getVersion() |
int |
hashCode() |
void |
readFields(DataInput in) |
void |
write(DataOutput out) |
public ClusterStatus()
public ClusterStatus(String hbaseVersion, String clusterid, Map<ServerName,HServerLoad> servers, Collection<ServerName> deadServers, ServerName master, Collection<ServerName> backupMasters, Map<String,AssignmentManager.RegionState> rit, String[] masterCoprocessors)
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
public Collection<ServerName> getServerInfo()
getServers()
ServerName
.public Collection<ServerName> getServers()
public ServerName getMaster()
ServerName
.public int getBackupMastersSize()
public Collection<ServerName> getBackupMasters()
public HServerLoad getLoad(ServerName sn)
sn
- public Map<String,AssignmentManager.RegionState> getRegionsInTransition()
public String getClusterId()
public String[] getMasterCoprocessors()
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class org.apache.hadoop.io.VersionedWritable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class org.apache.hadoop.io.VersionedWritable
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.