org.apache.hadoop.metrics2.lib
Class MutableRangeHistogram
java.lang.Object
org.apache.hadoop.metrics2.lib.MutableMetric
org.apache.hadoop.metrics2.lib.MutableHistogram
org.apache.hadoop.metrics2.lib.MutableRangeHistogram
- All Implemented Interfaces:
- MetricHistogram
- Direct Known Subclasses:
- MutableSizeHistogram, MutableTimeHistogram
@InterfaceAudience.Private
public abstract class MutableRangeHistogram
- extends MutableHistogram
Extended histogram implementation with metric range counters.
| 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 |
MutableRangeHistogram
public MutableRangeHistogram(MetricsInfo info)
MutableRangeHistogram
public MutableRangeHistogram(String name,
String description)
getRangeType
public abstract String getRangeType()
- Returns the type of range histogram size or time
getRange
public abstract long[] getRange()
- Returns the ranges to be counted
getRangeVals
public abstract AtomicLongArray getRangeVals()
- Returns the range counts
add
public void add(long val)
- Specified by:
add in interface MetricHistogram- Overrides:
add in class MutableHistogram
snapshot
public void snapshot(MetricsRecordBuilder metricsRecordBuilder,
boolean all)
- Overrides:
snapshot in class MutableHistogram
updateSnapshotRangeMetrics
public void updateSnapshotRangeMetrics(MetricsRecordBuilder metricsRecordBuilder)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.