public class MasterMetrics extends Object implements org.apache.hadoop.metrics.Updater
This class has a number of metrics variables that are publicly accessible; these variables (objects) have methods to update their values.
Constructor and Description |
---|
MasterMetrics(String name) |
Modifier and Type | Method and Description |
---|---|
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() |
public MasterMetrics(String name)
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 tookCopyright © 2014 The Apache Software Foundation. All Rights Reserved.