org.apache.hadoop.metrics2.lib
Class MetricMutableHistogram
java.lang.Object
org.apache.hadoop.metrics2.lib.MetricMutable
org.apache.hadoop.metrics2.lib.MetricMutableHistogram
- All Implemented Interfaces:
- MetricHistogram
- Direct Known Subclasses:
- MetricMutableRangeHistogram
public class MetricMutableHistogram
- extends org.apache.hadoop.metrics2.lib.MetricMutable
- implements MetricHistogram
A histogram implementation that runs in constant space, and exports to hadoop's metrics2 system.
| Fields inherited from class org.apache.hadoop.metrics2.lib.MetricMutable |
description, name |
| Methods inherited from class org.apache.hadoop.metrics2.lib.MetricMutable |
changed, clearChanged, setChanged, snapshot |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetricMutableHistogram
public MetricMutableHistogram(String name,
String description)
add
public void add(long val)
- Specified by:
add in interface MetricHistogram
getMax
public long getMax()
getMin
public long getMin()
getMean
public double getMean()
snapshot
public void snapshot(MetricsRecordBuilder metricsRecordBuilder,
boolean all)
- Specified by:
snapshot in class org.apache.hadoop.metrics2.lib.MetricMutable
updateSnapshotMetrics
public void updateSnapshotMetrics(MetricsRecordBuilder metricsRecordBuilder)
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.