@InterfaceAudience.Private public class MutableHistogram extends org.apache.hadoop.metrics2.lib.MutableMetric implements MetricHistogram
Modifier and Type | Field and Description |
---|---|
private AtomicLong |
count |
private static double |
DEFAULT_ALPHA |
private static int |
DEFAULT_SAMPLE_SIZE |
protected String |
desc |
private AtomicLong |
max |
private String |
MAX_METRIC |
private String |
MEAN_METRIC |
private String |
MEDIAN_METRIC |
private boolean |
metricsInfoStringInited |
private AtomicLong |
min |
private String |
MIN_METRIC |
protected String |
name |
private String |
NINETIETH_PERCENTILE_METRIC |
private String |
NINETY_FIFTH_PERCENTILE_METRIC |
private String |
NINETY_NINETH_PERCENTILE_METRIC |
private String |
NUM_OPS_METRIC |
private com.yammer.metrics.stats.Sample |
sample |
private String |
SEVENTY_FIFTH_PERCENTILE_METRIC |
private AtomicLong |
sum |
MAX_METRIC_NAME, MEAN_METRIC_NAME, MEDIAN_METRIC_NAME, MIN_METRIC_NAME, NINETIETH_PERCENTILE_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(org.apache.hadoop.metrics2.MetricsInfo info) |
MutableHistogram(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.
|
long |
getMax() |
double |
getMean() |
long |
getMin() |
private void |
setMax(long potentialMax) |
private void |
setMin(long potentialMin) |
void |
snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder,
boolean all) |
void |
updateSnapshotMetrics(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder) |
private static final int DEFAULT_SAMPLE_SIZE
private static final double DEFAULT_ALPHA
protected final String name
protected final String desc
private final com.yammer.metrics.stats.Sample sample
private final AtomicLong min
private final AtomicLong max
private final AtomicLong sum
private final AtomicLong count
private boolean metricsInfoStringInited
private String NUM_OPS_METRIC
private String MIN_METRIC
private String MAX_METRIC
private String MEAN_METRIC
private String MEDIAN_METRIC
private String SEVENTY_FIFTH_PERCENTILE_METRIC
private String NINETIETH_PERCENTILE_METRIC
private String NINETY_FIFTH_PERCENTILE_METRIC
private String NINETY_NINETH_PERCENTILE_METRIC
public MutableHistogram(org.apache.hadoop.metrics2.MetricsInfo info)
public void add(long val)
MetricHistogram
add
in interface MetricHistogram
private void setMax(long potentialMax)
private void setMin(long potentialMin)
public long getMax()
public long getMin()
public double getMean()
public void snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder, boolean all)
snapshot
in class org.apache.hadoop.metrics2.lib.MutableMetric
public void updateSnapshotMetrics(org.apache.hadoop.metrics2.MetricsRecordBuilder metricsRecordBuilder)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.