org.apache.hadoop.metrics2.lib
Class MetricMutableRangeHistogram
java.lang.Object
org.apache.hadoop.metrics2.lib.MetricMutable
org.apache.hadoop.metrics2.lib.MetricMutableHistogram
org.apache.hadoop.metrics2.lib.MetricMutableRangeHistogram
- All Implemented Interfaces:
- MetricHistogram
- Direct Known Subclasses:
- MetricMutableSizeHistogram, MetricMutableTimeHistogram
@InterfaceAudience.Private
public abstract class MetricMutableRangeHistogram
- extends MetricMutableHistogram
Extended histogram implementation with metric range counters.
| 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 |
MetricMutableRangeHistogram
public MetricMutableRangeHistogram(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 MetricMutableHistogram
snapshot
public void snapshot(MetricsRecordBuilder metricsRecordBuilder,
boolean all)
- Overrides:
snapshot in class MetricMutableHistogram
updateSnapshotRangeMetrics
public void updateSnapshotRangeMetrics(MetricsRecordBuilder metricsRecordBuilder)
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.