|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.HServerLoad
public class HServerLoad
This class encapsulates metrics for determining the load on a HRegionServer
| Constructor Summary | |
|---|---|
HServerLoad()
default constructior (used by Writable) |
|
HServerLoad(int numberOfRequests,
int numberOfRegions)
Constructor |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
int |
getLoad()
|
int |
getNumberOfRegions()
|
int |
getNumberOfRequests()
|
int |
hashCode()
|
void |
readFields(DataInput in)
Deserialize the fields of this object from in. |
void |
setNumberOfRegions(int numberOfRegions)
|
String |
toString()
|
void |
write(DataOutput out)
Serialize the fields of this object to out. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HServerLoad()
public HServerLoad(int numberOfRequests,
int numberOfRegions)
numberOfRequests - numberOfRegions - | Method Detail |
|---|
public int getLoad()
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int getNumberOfRegions()
public int getNumberOfRequests()
public void setNumberOfRegions(int numberOfRegions)
numberOfRegions - the numberOfRegions to set
public void readFields(DataInput in)
throws IOException
in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.
IOException
public void write(DataOutput out)
throws IOException
out.
write in interface Writableout - DataOuput to serialize this object into.
IOExceptionpublic int compareTo(Object o)
compareTo in interface Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||