|
||||||||||
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
Nested Class Summary | |
---|---|
static class |
HServerLoad.RegionLoad
Encapsulates per-region loading metrics. |
Constructor Summary | |
---|---|
HServerLoad()
default constructor (used by Writable) |
|
HServerLoad(HServerLoad hsl)
Constructor |
|
HServerLoad(int numberOfRequests,
int usedHeapMB,
int maxHeapMB)
Constructor |
Method Summary | |
---|---|
void |
addRegionInfo(byte[] name,
int stores,
int storefiles,
int memcacheSizeMB,
int storefileIndexSizeMB)
Deprecated. Use addRegionInfo(RegionLoad) |
void |
addRegionInfo(HServerLoad.RegionLoad load)
|
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 |
getMemcacheSizeInMB()
|
int |
getNumberOfRegions()
|
int |
getNumberOfRequests()
|
int |
getStorefileIndexSizeInMB()
|
int |
getStorefiles()
|
int |
hashCode()
|
void |
readFields(DataInput in)
|
void |
setMaxHeapMB(int maxHeapMB)
|
void |
setNumberOfRegions(int numberOfRegions)
|
void |
setNumberOfRequests(int numberOfRequests)
|
void |
setUsedHeapMB(int usedHeapMB)
|
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 usedHeapMB, int maxHeapMB)
numberOfRequests
- usedHeapMB
- maxHeapMB
- public HServerLoad(HServerLoad hsl)
hsl
- the template HServerLoadMethod 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 int getStorefiles()
public int getMemcacheSizeInMB()
public int getStorefileIndexSizeInMB()
public void setNumberOfRegions(int numberOfRegions)
numberOfRegions
- the number of regionspublic void setNumberOfRequests(int numberOfRequests)
numberOfRequests
- the number of requests to setpublic void setUsedHeapMB(int usedHeapMB)
usedHeapMB
- the amount of heap in use, in MBpublic void setMaxHeapMB(int maxHeapMB)
maxHeapMB
- the maximum allowable heap size, in MBpublic void addRegionInfo(HServerLoad.RegionLoad load)
load
- Instance of HServerLoad@Deprecated public void addRegionInfo(byte[] name, int stores, int storefiles, int memcacheSizeMB, int storefileIndexSizeMB)
addRegionInfo(RegionLoad)
name
- stores
- storefiles
- memcacheSizeMB
- storefileIndexSizeMB
- public 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 |