|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.master.metrics.MasterMetrics
public class MasterMetrics
This class is for maintaining the various master 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.
Constructor Summary | |
---|---|
MasterMetrics(String name)
|
Method Summary | |
---|---|
void |
addSnapshot(long time)
Record a single instance of a snapshot |
void |
addSnapshotClone(long time)
Record a single instance of a snapshot cloned table |
void |
addSnapshotRestore(long time)
Record a single instance of a snapshot |
void |
addSplit(long time,
long size)
Record a single instance of a split |
void |
doUpdates(org.apache.hadoop.metrics.MetricsContext unused)
Since this object is a registered updater, this method will be called periodically, e.g. |
float |
getRequests()
|
void |
incrementRequests(int inc)
|
void |
resetAllMinMax()
|
void |
shutdown()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MasterMetrics(String name)
Method Detail |
---|
public void shutdown()
public void doUpdates(org.apache.hadoop.metrics.MetricsContext unused)
doUpdates
in interface org.apache.hadoop.metrics.Updater
unused
- public void resetAllMinMax()
public void addSplit(long time, long size)
time
- time that the split tooksize
- length of original HLogs that were splitpublic float getRequests()
public void incrementRequests(int inc)
inc
- How much to add to requests.public void addSnapshot(long time)
time
- time that the snapshot tookpublic void addSnapshotRestore(long time)
time
- time that the snapshot restore tookpublic void addSnapshotClone(long time)
time
- time that the snapshot clone took
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |