|
||||||||||
| 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 storefileSizeMB,
int memstoreSizeMB,
int storefileIndexSizeMB)
Deprecated. Use addRegionInfo(RegionLoad) |
void |
addRegionInfo(HServerLoad.RegionLoad load)
|
int |
compareTo(HServerLoad o)
|
boolean |
equals(Object o)
|
int |
getLoad()
Originally, this method factored in the effect of requests going to the server as well. |
int |
getMaxHeapMB()
|
int |
getMemStoreSizeInMB()
|
int |
getNumberOfRegions()
|
int |
getNumberOfRequests()
|
Collection<HServerLoad.RegionLoad> |
getRegionsLoad()
|
int |
getStorefileIndexSizeInMB()
|
int |
getStorefiles()
|
int |
getStorefileSizeInMB()
|
int |
getUsedHeapMB()
|
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 HServerLoad| Method Detail |
|---|
public int getLoad()
public String toString()
toString in class ObjectObject.toString()public String toString(int msgInterval)
msgInterval -
public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public int getNumberOfRegions()
public int getNumberOfRequests()
public int getUsedHeapMB()
public int getMaxHeapMB()
public Collection<HServerLoad.RegionLoad> getRegionsLoad()
public int getStorefiles()
public int getStorefileSizeInMB()
public int getMemStoreSizeInMB()
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 storefileSizeMB,
int memstoreSizeMB,
int storefileIndexSizeMB)
addRegionInfo(RegionLoad)
name - stores - storefiles - memstoreSizeMB - storefileIndexSizeMB -
public void readFields(DataInput in)
throws IOException
readFields in interface org.apache.hadoop.io.WritableIOException
public void write(DataOutput out)
throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic int compareTo(HServerLoad o)
compareTo in interface Comparable<HServerLoad>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||