@Deprecated public class MetricsHistogram extends org.apache.hadoop.metrics.util.MetricsBase
Modifier and Type | Field and Description |
---|---|
static String |
MAX_METRIC_NAME
Deprecated.
|
static String |
MEAN_METRIC_NAME
Deprecated.
|
static String |
MEDIAN_METRIC_NAME
Deprecated.
|
static String |
MIN_METRIC_NAME
Deprecated.
|
static String |
NINETY_FIFTH_PERCENTILE_METRIC_NAME
Deprecated.
|
static String |
NINETY_NINETH_PERCENTILE_METRIC_NAME
Deprecated.
|
static String |
NUM_OPS_METRIC_NAME
Deprecated.
|
static String |
SEVENTY_FIFTH_PERCENTILE_METRIC_NAME
Deprecated.
|
static String |
STD_DEV_METRIC_NAME
Deprecated.
|
Constructor and Description |
---|
MetricsHistogram(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry)
Deprecated.
Constructor - create a new (forward biased) histogram metric
|
MetricsHistogram(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry,
String description)
Deprecated.
Constructor create a new (forward biased) histogram metric
|
MetricsHistogram(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry,
String description,
boolean forwardBiased)
Deprecated.
Constructor to create a new histogram metric
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Deprecated.
Clears all recorded values.
|
long |
getCount()
Deprecated.
|
long |
getMax()
Deprecated.
|
double |
getMean()
Deprecated.
|
long |
getMin()
Deprecated.
|
com.yammer.metrics.stats.Snapshot |
getSnapshot()
Deprecated.
|
double |
getStdDev()
Deprecated.
|
void |
pushMetric(org.apache.hadoop.metrics.MetricsRecord mr)
Deprecated.
|
void |
update(int val)
Deprecated.
|
void |
update(long val)
Deprecated.
|
public static final String NUM_OPS_METRIC_NAME
public static final String MIN_METRIC_NAME
public static final String MAX_METRIC_NAME
public static final String MEAN_METRIC_NAME
public static final String STD_DEV_METRIC_NAME
public static final String MEDIAN_METRIC_NAME
public static final String SEVENTY_FIFTH_PERCENTILE_METRIC_NAME
public static final String NINETY_FIFTH_PERCENTILE_METRIC_NAME
public static final String NINETY_NINETH_PERCENTILE_METRIC_NAME
public MetricsHistogram(String nam, org.apache.hadoop.metrics.util.MetricsRegistry registry, String description, boolean forwardBiased)
nam
- the name to publish the metric underregistry
- where the metrics object will be registereddescription
- the metric's descriptionforwardBiased
- true if you want this histogram to give more
weight to recent data,
false if you want all data to have uniform weightpublic MetricsHistogram(String nam, org.apache.hadoop.metrics.util.MetricsRegistry registry, String description)
nam
- the name to publish the metric underregistry
- where the metrics object will be registereddescription
- the metric's descriptionpublic MetricsHistogram(String nam, org.apache.hadoop.metrics.util.MetricsRegistry registry)
nam
- the name of the metrics to be used to publish the metricregistry
- - where the metrics object will be registeredpublic void clear()
public void update(int val)
public void update(long val)
public long getCount()
public long getMax()
public long getMin()
public double getMean()
public double getStdDev()
public com.yammer.metrics.stats.Snapshot getSnapshot()
public void pushMetric(org.apache.hadoop.metrics.MetricsRecord mr)
pushMetric
in class org.apache.hadoop.metrics.util.MetricsBase
Copyright © 2014 The Apache Software Foundation. All rights reserved.