org.apache.hadoop.hbase
Class ClusterStatus
java.lang.Object
org.apache.hadoop.io.VersionedWritable
org.apache.hadoop.hbase.ClusterStatus
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class ClusterStatus
- extends org.apache.hadoop.io.VersionedWritable
Status information on the HBase cluster.
ClusterStatus provides clients with information such as:
- The count and names of region servers in the cluster.
- The count and names of dead region servers in the cluster.
- The average cluster load.
- The number of regions deployed on the cluster.
- The number of requests since last report.
- Detailed region server loading and resource usage information,
per server and per region.
- Regions in transition at master
ClusterStatus
public ClusterStatus()
- Constructor, for Writable
getDeadServerNames
public Collection<String> getDeadServerNames()
- Returns:
- the names of region servers on the dead list
getServers
public int getServers()
- Returns:
- the number of region servers in the cluster
getDeadServers
public int getDeadServers()
- Returns:
- the number of dead region servers in the cluster
getAverageLoad
public double getAverageLoad()
- Returns:
- the average cluster load
getRegionsCount
public int getRegionsCount()
- Returns:
- the number of regions deployed on the cluster
getRequestsCount
public int getRequestsCount()
- Returns:
- the number of requests since last report
getHBaseVersion
public String getHBaseVersion()
- Returns:
- the HBase version string as reported by the HMaster
setHBaseVersion
public void setHBaseVersion(String version)
- Parameters:
version
- the HBase version string
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- See Also:
Object.hashCode()
getVersion
public byte getVersion()
- Specified by:
getVersion
in class org.apache.hadoop.io.VersionedWritable
- Returns:
- the object version number
getServerInfo
public Collection<HServerInfo> getServerInfo()
- Returns detailed region server information: A list of
HServerInfo
, containing server load and resource usage
statistics as HServerLoad
, containing per-region
statistics as HServerLoad.RegionLoad
.
- Returns:
- region server information
setServerInfo
public void setServerInfo(Collection<HServerInfo> serverInfo)
setDeadServers
public void setDeadServers(Collection<String> deadServers)
getRegionsInTransition
public Map<String,AssignmentManager.RegionState> getRegionsInTransition()
setRegionsInTransition
public void setRegionsInTransition(Map<String,AssignmentManager.RegionState> m)
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Overrides:
write
in class org.apache.hadoop.io.VersionedWritable
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Overrides:
readFields
in class org.apache.hadoop.io.VersionedWritable
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.