@InterfaceAudience.Public @InterfaceStability.Evolving public class ClusterStatus extends org.apache.hadoop.io.VersionedWritable
ClusterStatus provides clients with information such as:
构造器和说明 |
---|
ClusterStatus()
已过时。
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,
List<ServerName> deadServers,
ServerName master)
已过时。
|
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)
已过时。
|
ClusterStatus(String hbaseVersion,
String clusterid,
Map<ServerName,ServerLoad> servers,
Collection<ServerName> deadServers,
ServerName master,
Collection<ServerName> backupMasters,
Set<RegionState> rit,
String[] masterCoprocessors,
Boolean balancerOn) |
@Deprecated public ClusterStatus()
@Deprecated public ClusterStatus(String hbaseVersion, String clusterid, List<ServerName> deadServers, ServerName master)
@Deprecated 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 ClusterStatus(String hbaseVersion, String clusterid, Map<ServerName,ServerLoad> servers, Collection<ServerName> deadServers, ServerName master, Collection<ServerName> backupMasters, Set<RegionState> rit, String[] masterCoprocessors, Boolean balancerOn)
public Collection<ServerName> getDeadServerNames()
public int getServersSize()
public int getDeadServers()
public Map<ServerName,ServerLoad> getLiveServersLoad()
public double getAverageLoad()
public int getRegionsCount()
public int getRequestsCount()
public String getHBaseVersion()
public boolean equals(Object o)
equals
在类中 Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
在类中 Object
Object.hashCode()
public byte getVersion()
getVersion
在类中 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 Set<RegionState> getRegionsInTransition()
public String getClusterId()
public String[] getMasterCoprocessors()
public long getLastMajorCompactionTsForTable(TableName table)
public long getLastMajorCompactionTsForRegion(byte[] region)
public boolean isBalancerOn()
public Boolean getBalancerOn()
@Deprecated public org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ClusterStatus convert()
@Deprecated public static ClusterStatus convert(org.apache.hadoop.hbase.protobuf.generated.ClusterStatusProtos.ClusterStatus proto)
proto
- the protobuf ClusterStatusCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.