@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) |
MutableRangeHistogram(String name,
String description,
long expectedMax) |
Modifier and Type | Method and Description |
---|---|
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 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)
Copyright © 2007–2019 Cloudera. All rights reserved.