@InterfaceAudience.Private public abstract class MutableRangeHistogram extends MutableHistogram
desc, name
MAX_METRIC_NAME, MEAN_METRIC_NAME, MEDIAN_METRIC_NAME, MIN_METRIC_NAME, NINETY_FIFTH_PERCENTILE_METRIC_NAME, NINETY_NINETH_PERCENTILE_METRIC_NAME, NUM_OPS_METRIC_NAME, SEVENTY_FIFTH_PERCENTILE_METRIC_NAME
Constructor and Description |
---|
MutableRangeHistogram(org.apache.hadoop.metrics2.MetricsInfo info) |
MutableRangeHistogram(String name,
String description) |
Modifier and Type | Method and Description |
---|---|
void |
add(long val)
Add a single value to a histogram's stream of values.
|
abstract long[] |
getRange()
Returns the ranges to be counted
|
abstract String |
getRangeType()
Returns the type of range histogram size or time
|
abstract AtomicLongArray |
getRangeVals()
Returns the range counts
|
void |
snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder,
boolean all) |
void |
updateSnapshotRangeMetrics(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder) |
getMax, getMean, getMin, updateSnapshotMetrics
public MutableRangeHistogram(org.apache.hadoop.metrics2.MetricsInfo info)
public abstract String getRangeType()
public abstract long[] getRange()
public abstract AtomicLongArray getRangeVals()
public void add(long val)
MetricHistogram
add
in interface MetricHistogram
add
in class MutableHistogram
public void snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder, boolean all)
snapshot
in class MutableHistogram
public void updateSnapshotRangeMetrics(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder)
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.