org.apache.hadoop.metrics2.lib
Class MutableHistogram
java.lang.Object
org.apache.hadoop.metrics2.lib.MutableMetric
org.apache.hadoop.metrics2.lib.MutableHistogram
- All Implemented Interfaces:
- MetricHistogram
@InterfaceAudience.Private
public class MutableHistogram
- extends org.apache.hadoop.metrics2.lib.MutableMetric
- implements MetricHistogram
A histogram implementation that runs in constant space, and exports to hadoop2's metrics2 system.
Method Summary |
void |
add(long val)
Add a single value to a histogram's stream of values. |
long |
getMax()
|
double |
getMean()
|
long |
getMin()
|
void |
snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder,
boolean all)
|
Methods inherited from class org.apache.hadoop.metrics2.lib.MutableMetric |
changed, clearChanged, setChanged, snapshot |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MutableHistogram
public MutableHistogram(org.apache.hadoop.metrics2.MetricsInfo info)
MutableHistogram
public MutableHistogram(String name,
String description)
add
public void add(long val)
- Description copied from interface:
MetricHistogram
- Add a single value to a histogram's stream of values.
- Specified by:
add
in interface MetricHistogram
getMax
public long getMax()
getMin
public long getMin()
getMean
public double getMean()
snapshot
public void snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder,
boolean all)
- Specified by:
snapshot
in class org.apache.hadoop.metrics2.lib.MutableMetric
Copyright © 2015 The Apache Software Foundation. All rights reserved.