org.apache.hadoop.metrics2.lib
Class MetricMutableSizeHistogram

java.lang.Object
  extended by org.apache.hadoop.metrics2.lib.MetricMutable
      extended by org.apache.hadoop.metrics2.lib.MetricMutableHistogram
          extended by org.apache.hadoop.metrics2.lib.MetricMutableRangeHistogram
              extended by org.apache.hadoop.metrics2.lib.MetricMutableSizeHistogram
All Implemented Interfaces:
MetricHistogram

@InterfaceAudience.Private
public class MetricMutableSizeHistogram
extends MetricMutableRangeHistogram

Extended histogram implementation with counters for metric size ranges.


Field Summary
 
Fields inherited from class org.apache.hadoop.metrics2.lib.MetricMutable
description, 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
MetricMutableSizeHistogram(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.MetricMutableRangeHistogram
add, snapshot, updateSnapshotRangeMetrics
 
Methods inherited from class org.apache.hadoop.metrics2.lib.MetricMutableHistogram
getMax, getMean, getMin, updateSnapshotMetrics
 
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
 

Constructor Detail

MetricMutableSizeHistogram

public MetricMutableSizeHistogram(String name,
                                  String description)
Method Detail

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.