@InterfaceAudience.Private public class MutableHistogram extends org.apache.hadoop.metrics2.lib.MutableMetric implements MetricHistogram
| Modifier and Type | Field and Description |
|---|---|
protected String |
desc |
protected String |
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 |
|---|
MutableHistogram(MetricsInfo info) |
MutableHistogram(String name,
String description) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long val) |
long |
getMax() |
double |
getMean() |
long |
getMin() |
void |
snapshot(MetricsRecordBuilder metricsRecordBuilder,
boolean all) |
void |
updateSnapshotMetrics(MetricsRecordBuilder metricsRecordBuilder) |
changed, clearChanged, setChanged, snapshotpublic MutableHistogram(MetricsInfo info)
public void add(long val)
add in interface MetricHistogrampublic long getMax()
public long getMin()
public double getMean()
public void snapshot(MetricsRecordBuilder metricsRecordBuilder, boolean all)
snapshot in class org.apache.hadoop.metrics2.lib.MutableMetricpublic void updateSnapshotMetrics(MetricsRecordBuilder metricsRecordBuilder)
Copyright © 2007-2017 The Apache Software Foundation. All Rights Reserved.