|
||||||||||
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 Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getNumberOfRegions()
public int getNumberOfRequests()
public void setNumberOfRegions(int numberOfRegions)
numberOfRegions
- the numberOfRegions to setpublic 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 Writable
in
- DataInput
to deseriablize this object from.
IOException
public void write(DataOutput out) throws IOException
out
.
write
in interface Writable
out
- DataOuput
to serialize this object into.
IOException
public int compareTo(Object o)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |