@InterfaceAudience.Private public abstract class MutableRangeHistogram extends MutableHistogram implements MetricHistogram
desc, histogram, name
MAX_METRIC_NAME, MEAN_METRIC_NAME, MEDIAN_METRIC_NAME, MIN_METRIC_NAME, NINETIETH_PERCENTILE_METRIC_NAME, NINETY_EIGHTH_PERCENTILE_METRIC_NAME, NINETY_FIFTH_PERCENTILE_METRIC_NAME, NINETY_NINE_POINT_NINETH_PERCENTILE_METRIC_NAME, NINETY_NINETH_PERCENTILE_METRIC_NAME, NUM_OPS_METRIC_NAME, SEVENTY_FIFTH_PERCENTILE_METRIC_NAME, TWENTY_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 |
---|---|
long |
getCount()
Return the total number of values added to the histogram.
|
abstract long[] |
getRanges()
Returns the ranges to be counted
|
abstract String |
getRangeType()
Returns the type of range histogram size or time
|
void |
snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder,
boolean all) |
void |
updateSnapshotRangeMetrics(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder,
Snapshot snapshot) |
add, getMax, snapshot, updateSnapshotMetrics
changed, clearChanged, setChanged, snapshot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add
public MutableRangeHistogram(org.apache.hadoop.metrics2.MetricsInfo info)
public MutableRangeHistogram(String name, String description)
public abstract String getRangeType()
public abstract long[] getRanges()
public void snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder, boolean all)
snapshot
in class MutableHistogram
public void updateSnapshotRangeMetrics(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder, Snapshot snapshot)
public long getCount()
MetricHistogram
getCount
in interface MetricHistogram
getCount
in class MutableHistogram
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.