@InterfaceAudience.Private public class MutableHistogram extends org.apache.hadoop.metrics2.lib.MutableMetric implements MetricHistogram
| Modifier and Type | Field and Description |
|---|---|
protected Counter |
counter |
protected String |
desc |
protected FastLongHistogram |
histogram |
protected String |
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| Modifier | Constructor and Description |
|---|---|
|
MutableHistogram(MetricsInfo info) |
|
MutableHistogram(String name,
String description) |
protected |
MutableHistogram(String name,
String description,
long maxExpected) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long val) |
long |
getMax() |
void |
snapshot(MetricsRecordBuilder metricsRecordBuilder,
boolean all) |
protected void |
updateSnapshotMetrics(MetricsRecordBuilder metricsRecordBuilder,
FastLongHistogram histo) |
changed, clearChanged, setChanged, snapshotprotected final FastLongHistogram histogram
protected final String name
protected final String desc
protected final Counter counter
public MutableHistogram(MetricsInfo info)
public void add(long val)
add in interface MetricHistogrampublic long getMax()
public void snapshot(MetricsRecordBuilder metricsRecordBuilder, boolean all)
snapshot in class org.apache.hadoop.metrics2.lib.MutableMetricprotected void updateSnapshotMetrics(MetricsRecordBuilder metricsRecordBuilder, FastLongHistogram histo)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.