org.apache.hadoop.metrics2.lib
Class MutableSizeHistogram

java.lang.Object
  extended by org.apache.hadoop.metrics2.lib.MutableMetric
      extended by org.apache.hadoop.metrics2.lib.MutableHistogram
          extended by org.apache.hadoop.metrics2.lib.MutableRangeHistogram
              extended by org.apache.hadoop.metrics2.lib.MutableSizeHistogram
All Implemented Interfaces:
MetricHistogram

@InterfaceAudience.Private
public class MutableSizeHistogram
extends MutableRangeHistogram

Extended histogram implementation with counters for metric size ranges.


Field Summary
 
Fields inherited from class org.apache.hadoop.metrics2.lib.MutableHistogram
desc, name
 
Fields inherited from interface org.apache.hadoop.metrics2.MetricHistogram
MAX_METRIC_NAME, MEAN_METRIC_NAME, MEDIAN_METRIC_NAME, MIN_METRIC_NAME, NINETIETH_PERCENTILE_METRIC_NAME, NINETY_FIFTH_PERCENTILE_METRIC_NAME, NINETY_NINETH_PERCENTILE_METRIC_NAME, NUM_OPS_METRIC_NAME, SEVENTY_FIFTH_PERCENTILE_METRIC_NAME
 
Constructor Summary
MutableSizeHistogram(MetricsInfo info)
           
MutableSizeHistogram(String name, String description)
           
 
Method Summary
 long[] getRange()
          Returns the ranges to be counted
 String getRangeType()
          Returns the type of range histogram size or time
 AtomicLongArray getRangeVals()
          Returns the range counts
 
Methods inherited from class org.apache.hadoop.metrics2.lib.MutableRangeHistogram
add, snapshot, updateSnapshotRangeMetrics
 
Methods inherited from class org.apache.hadoop.metrics2.lib.MutableHistogram
getMax, getMean, getMin, updateSnapshotMetrics
 
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
 

Constructor Detail

MutableSizeHistogram

public MutableSizeHistogram(MetricsInfo info)

MutableSizeHistogram

public MutableSizeHistogram(String name,
                            String description)
Method Detail

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.