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