|
||||||||||
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)
|
void |
setNumberOfRegions(int numberOfRegions)
|
String |
toString()
|
void |
write(DataOutput 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
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
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 |