ClusterMetrics
instead.@InterfaceAudience.Public @Deprecated public class ClusterStatus extends Object implements ClusterMetrics
ClusterStatus provides clients with information such as:
ClusterMetrics.Option
provides a way to get desired ClusterStatus information.
The following codes will get all the cluster information.
// Original version still works
Admin admin = connection.getAdmin();
ClusterStatus status = admin.getClusterStatus();
// or below, a new version which has the same effects
ClusterStatus status = admin.getClusterStatus(EnumSet.allOf(Option.class));
If information about live servers is the only wanted.
then codes in the following way:
Admin admin = connection.getAdmin();
ClusterStatus status = admin.getClusterStatus(EnumSet.of(Option.LIVE_SERVERS));
ClusterMetrics.Option
构造器和说明 |
---|
ClusterStatus(ClusterMetrics metrics)
已过时。
|
ClusterStatus(String hbaseVersion,
String clusterid,
Map<ServerName,ServerLoad> servers,
Collection<ServerName> deadServers,
ServerName master,
Collection<ServerName> backupMasters,
List<RegionState> rit,
String[] masterCoprocessors,
Boolean balancerOn,
int masterInfoPort)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(Object o)
已过时。
|
List<ServerName> |
getBackupMasterNames()
已过时。
|
List<ServerName> |
getBackupMasters()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
getBackupMasterNames() instead. |
int |
getBackupMastersSize()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
getBackupMasterNames() instead. |
Boolean |
getBalancerOn()
已过时。
|
String |
getClusterId()
已过时。
|
List<ServerName> |
getDeadServerNames()
已过时。
|
int |
getDeadServers()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
(HBASE-13656).
Use
getDeadServerNames() . |
int |
getDeadServersSize()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
getDeadServerNames() . |
String |
getHBaseVersion()
已过时。
|
long |
getLastMajorCompactionTsForRegion(byte[] region)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
ClusterMetrics.getLastMajorCompactionTimestamp(byte[]) instead. |
long |
getLastMajorCompactionTsForTable(TableName table)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
ClusterMetrics.getLastMajorCompactionTimestamp(TableName) instead. |
Map<ServerName,ServerMetrics> |
getLiveServerMetrics()
已过时。
|
ServerLoad |
getLoad(ServerName sn)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
getLiveServerMetrics() instead. |
ServerName |
getMaster()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
getMasterName() instead. |
List<String> |
getMasterCoprocessorNames()
已过时。
|
String[] |
getMasterCoprocessors()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
getMasterCoprocessorNames() instead. |
int |
getMasterInfoPort()
已过时。
|
ServerName |
getMasterName()
已过时。
Returns detailed information about the current master
ServerName . |
int |
getRegionsCount()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
ClusterMetrics.getRegionCount() . |
List<RegionState> |
getRegionStatesInTransition()
已过时。
|
int |
getRequestsCount()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
ClusterMetrics.getRequestCount() instead. |
Collection<ServerName> |
getServers()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
getLiveServerMetrics() instead. |
List<ServerName> |
getServersName()
已过时。
|
int |
getServersSize()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
Use
getLiveServerMetrics() . |
byte |
getVersion()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
|
int |
hashCode()
已过时。
|
boolean |
isBalancerOn()
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0
No flag in 2.0
|
String |
toString()
已过时。
|
getAverageLoad, getLastMajorCompactionTimestamp, getLastMajorCompactionTimestamp, getRegionCount, getRequestCount
@Deprecated 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, int masterInfoPort)
@InterfaceAudience.Private public ClusterStatus(ClusterMetrics metrics)
public List<ServerName> getDeadServerNames()
getDeadServerNames
在接口中 ClusterMetrics
public Map<ServerName,ServerMetrics> getLiveServerMetrics()
getLiveServerMetrics
在接口中 ClusterMetrics
@Deprecated public int getServersSize()
getLiveServerMetrics()
.@Deprecated public int getDeadServers()
getDeadServerNames()
.@Deprecated public int getDeadServersSize()
getDeadServerNames()
.@Deprecated public int getRegionsCount()
ClusterMetrics.getRegionCount()
.@Deprecated public int getRequestsCount()
ClusterMetrics.getRequestCount()
instead.@Nullable public ServerName getMasterName()
ClusterMetrics
ServerName
.getMasterName
在接口中 ClusterMetrics
public List<ServerName> getBackupMasterNames()
getBackupMasterNames
在接口中 ClusterMetrics
public List<RegionState> getRegionStatesInTransition()
getRegionStatesInTransition
在接口中 ClusterMetrics
public String getHBaseVersion()
getHBaseVersion
在接口中 ClusterMetrics
@Deprecated public byte getVersion()
@Deprecated public Collection<ServerName> getServers()
getLiveServerMetrics()
instead.@Deprecated public ServerName getMaster()
getMasterName()
instead.ServerName
.@Deprecated public int getBackupMastersSize()
getBackupMasterNames()
instead.@Deprecated public List<ServerName> getBackupMasters()
getBackupMasterNames()
instead.@Deprecated public ServerLoad getLoad(ServerName sn)
getLiveServerMetrics()
instead.sn
- public String getClusterId()
getClusterId
在接口中 ClusterMetrics
public List<String> getMasterCoprocessorNames()
getMasterCoprocessorNames
在接口中 ClusterMetrics
@Deprecated public String[] getMasterCoprocessors()
getMasterCoprocessorNames()
instead.@Deprecated public long getLastMajorCompactionTsForTable(TableName table)
ClusterMetrics.getLastMajorCompactionTimestamp(TableName)
instead.@Deprecated public long getLastMajorCompactionTsForRegion(byte[] region)
ClusterMetrics.getLastMajorCompactionTimestamp(byte[])
instead.@Deprecated public boolean isBalancerOn()
public Boolean getBalancerOn()
getBalancerOn
在接口中 ClusterMetrics
public int getMasterInfoPort()
getMasterInfoPort
在接口中 ClusterMetrics
public List<ServerName> getServersName()
getServersName
在接口中 ClusterMetrics
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.