|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.metrics2.lib.MutableMetric
@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class MutableMetric
The mutable metric interface
Constructor Summary | |
---|---|
MutableMetric()
|
Method Summary | |
---|---|
boolean |
changed()
|
protected void |
clearChanged()
Clear the changed flag in the snapshot operations |
protected void |
setChanged()
Set the changed flag in mutable operations |
void |
snapshot(MetricsRecordBuilder builder)
Get a snapshot of metric if changed |
abstract void |
snapshot(MetricsRecordBuilder builder,
boolean all)
Get a snapshot of the metric |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MutableMetric()
Method Detail |
---|
public abstract void snapshot(MetricsRecordBuilder builder, boolean all)
builder
- the metrics record builderall
- if true, snapshot unchanged metrics as wellpublic void snapshot(MetricsRecordBuilder builder)
builder
- the metrics record builderprotected void setChanged()
protected void clearChanged()
public boolean changed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |