|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.io.VersionedWritable
org.apache.hadoop.hbase.HServerLoad
public class HServerLoad
This class is used exporting current state of load on a RegionServer.
| Nested Class Summary | |
|---|---|
static class |
HServerLoad.RegionLoad
Encapsulates per-region loading metrics. |
| Field Summary | |
|---|---|
static HServerLoad |
EMPTY_HSERVERLOAD
|
| Constructor Summary | |
|---|---|
HServerLoad()
default constructor (used by Writable) |
|
HServerLoad(HServerLoad hsl)
Constructor |
|
HServerLoad(int totalNumberOfRequests,
int numberOfRequests,
int usedHeapMB,
int maxHeapMB,
Map<byte[],HServerLoad.RegionLoad> regionLoad,
Set<String> coprocessors)
Constructor |
|
| Method Summary | |
|---|---|
int |
compareTo(HServerLoad o)
|
boolean |
equals(Object o)
|
String[] |
getCoprocessors()
HBASE-4070: Improve region server metrics to report loaded coprocessors. |
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()
|
Map<byte[],HServerLoad.RegionLoad> |
getRegionsLoad()
|
int |
getStorefileIndexSizeInMB()
|
int |
getStorefiles()
|
int |
getStorefileSizeInMB()
|
int |
getTotalNumberOfRequests()
|
int |
getUsedHeapMB()
|
byte |
getVersion()
|
void |
readFields(DataInput in)
|
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, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final HServerLoad EMPTY_HSERVERLOAD
| Constructor Detail |
|---|
public HServerLoad()
public HServerLoad(int totalNumberOfRequests,
int numberOfRequests,
int usedHeapMB,
int maxHeapMB,
Map<byte[],HServerLoad.RegionLoad> regionLoad,
Set<String> coprocessors)
numberOfRequests - usedHeapMB - maxHeapMB - coprocessors - : coprocessors loaded at the regionserver-levelpublic HServerLoad(HServerLoad hsl)
hsl - the template HServerLoad| Method Detail |
|---|
public String[] getCoprocessors()
public byte getVersion()
getVersion in class org.apache.hadoop.io.VersionedWritablepublic 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 getNumberOfRegions()
public int getNumberOfRequests()
public int getTotalNumberOfRequests()
public int getUsedHeapMB()
public int getMaxHeapMB()
public Map<byte[],HServerLoad.RegionLoad> getRegionsLoad()
public int getStorefiles()
public int getStorefileSizeInMB()
public int getMemStoreSizeInMB()
public int getStorefileIndexSizeInMB()
public void readFields(DataInput in)
throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class org.apache.hadoop.io.VersionedWritableIOException
public void write(DataOutput out)
throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class org.apache.hadoop.io.VersionedWritableIOExceptionpublic 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 | |||||||||