|
||||||||||
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()
Originally, this method factored in the effect of requests going to the server as well. |
int |
getNumberOfRegions()
|
int |
getNumberOfRequests()
|
int |
hashCode()
|
void |
readFields(DataInput in)
|
void |
setNumberOfRegions(int numberOfRegions)
|
void |
setNumberOfRequests(int numberOfRequests)
|
String |
toString()
|
String |
toString(int msgInterval)
Returns toString() with the number of requests divided by the message interval in seconds |
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 String toString(int msgInterval)
msgInterval
-
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 setNumberOfRequests(int numberOfRequests)
numberOfRequests
- the numberOfRequests 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 |