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