@InterfaceAudience.Private public class MetricMutableQuantiles extends org.apache.hadoop.metrics2.lib.MutableMetric implements MetricHistogram
| Modifier and Type | Field and Description | 
|---|---|
| protected Map<MetricQuantile,Long> | previousSnapshot | 
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 | 
|---|
| MetricMutableQuantiles(String name,
                      String description,
                      String sampleName,
                      String valueName,
                      int interval)Instantiates a new  MetricMutableQuantilesfor a metric that rolls itself over on the
 specified time interval. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(long value)Add a single value to a histogram's stream of values. | 
| int | getInterval() | 
| void | snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder builder,
        boolean all) | 
protected Map<MetricQuantile,Long> previousSnapshot
public MetricMutableQuantiles(String name, String description, String sampleName, String valueName, int interval)
MetricMutableQuantiles for a metric that rolls itself over on the
 specified time interval.name - of the metricdescription - long-form textual description of the metricsampleName - type of items in the stream (e.g., "Ops")valueName - type of the valuesinterval - rollover interval (in seconds) of the estimatorpublic void snapshot(org.apache.hadoop.metrics2.MetricsRecordBuilder builder,
            boolean all)
snapshot in class org.apache.hadoop.metrics2.lib.MutableMetricpublic void add(long value)
MetricHistogramadd in interface MetricHistogrampublic int getInterval()
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.