|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.metrics.RegionServerMetrics
public class RegionServerMetrics
This class is for maintaining the various regionserver statistics and publishing them through the metrics interfaces.
This class has a number of metrics variables that are publicly accessible; these variables (objects) have methods to update their values.
Field Summary | |
---|---|
org.apache.hadoop.metrics.util.MetricsIntValue |
memcacheSizeMB
Sum of all the memcache sizes in this regionserver in MB |
org.apache.hadoop.metrics.util.MetricsIntValue |
regions
Count of regions carried by this regionserver |
org.apache.hadoop.metrics.util.MetricsIntValue |
storefileIndexSizeMB
Sum of all the storefile index sizes in this regionserver in MB |
org.apache.hadoop.metrics.util.MetricsIntValue |
storefiles
Count of storefiles open on the regionserver. |
org.apache.hadoop.metrics.util.MetricsIntValue |
stores
Count of stores open on the regionserver. |
Constructor Summary | |
---|---|
RegionServerMetrics()
|
Method Summary | |
---|---|
void |
doUpdates(org.apache.hadoop.metrics.MetricsContext unused)
Since this object is a registered updater, this method will be called periodically, e.g. |
int |
getRequests()
|
void |
incrementRequests(int inc)
|
void |
resetAllMinMax()
|
void |
shutdown()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final org.apache.hadoop.metrics.util.MetricsIntValue regions
public final org.apache.hadoop.metrics.util.MetricsIntValue stores
public final org.apache.hadoop.metrics.util.MetricsIntValue storefiles
public final org.apache.hadoop.metrics.util.MetricsIntValue storefileIndexSizeMB
public final org.apache.hadoop.metrics.util.MetricsIntValue memcacheSizeMB
Constructor Detail |
---|
public RegionServerMetrics()
Method Detail |
---|
public void shutdown()
public void doUpdates(org.apache.hadoop.metrics.MetricsContext unused)
doUpdates
in interface org.apache.hadoop.metrics.Updater
public void resetAllMinMax()
public int getRequests()
public void incrementRequests(int inc)
inc
- How much to add to requests.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |