org.apache.hadoop.hbase
Class ClusterStatus

java.lang.Object
  extended by org.apache.hadoop.io.VersionedWritable
      extended by 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:


Constructor Summary
ClusterStatus()
          Constructor, for Writable
 
Method Summary
 boolean equals(Object o)
           
 double getAverageLoad()
           
 Collection<String> getDeadServerNames()
           
 int getDeadServers()
           
 String getHBaseVersion()
           
 int getRegionsCount()
           
 Map<String,AssignmentManager.RegionState> getRegionsInTransition()
           
 int getRequestsCount()
           
 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.
 int getServers()
           
 byte getVersion()
           
 int hashCode()
           
 void readFields(DataInput in)
           
 void setDeadServers(Collection<String> deadServers)
           
 void setHBaseVersion(String version)
           
 void setRegionsInTransition(Map<String,AssignmentManager.RegionState> m)
           
 void setServerInfo(Collection<HServerInfo> serverInfo)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterStatus

public ClusterStatus()
Constructor, for Writable

Method Detail

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.