org.apache.hadoop.hbase.metrics.histogram
Class MetricsHistogram
java.lang.Object
org.apache.hadoop.metrics.util.MetricsBase
org.apache.hadoop.hbase.metrics.histogram.MetricsHistogram
public class MetricsHistogram
- extends org.apache.hadoop.metrics.util.MetricsBase
Fields inherited from class org.apache.hadoop.metrics.util.MetricsBase |
NO_DESCRIPTION |
Constructor Summary |
MetricsHistogram(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry)
Constructor - create a new (forward biased) histogram metric |
MetricsHistogram(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry,
String description)
Constructor create a new (forward biased) histogram metric |
MetricsHistogram(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry,
String description,
boolean forwardBiased)
Constructor to create a new histogram metric |
Methods inherited from class org.apache.hadoop.metrics.util.MetricsBase |
getDescription, getName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NUM_OPS_METRIC_NAME
public static final String NUM_OPS_METRIC_NAME
- See Also:
- Constant Field Values
MIN_METRIC_NAME
public static final String MIN_METRIC_NAME
- See Also:
- Constant Field Values
MAX_METRIC_NAME
public static final String MAX_METRIC_NAME
- See Also:
- Constant Field Values
MEAN_METRIC_NAME
public static final String MEAN_METRIC_NAME
- See Also:
- Constant Field Values
STD_DEV_METRIC_NAME
public static final String STD_DEV_METRIC_NAME
- See Also:
- Constant Field Values
MEDIAN_METRIC_NAME
public static final String MEDIAN_METRIC_NAME
- See Also:
- Constant Field Values
SEVENTY_FIFTH_PERCENTILE_METRIC_NAME
public static final String SEVENTY_FIFTH_PERCENTILE_METRIC_NAME
- See Also:
- Constant Field Values
NINETY_FIFTH_PERCENTILE_METRIC_NAME
public static final String NINETY_FIFTH_PERCENTILE_METRIC_NAME
- See Also:
- Constant Field Values
NINETY_NINETH_PERCENTILE_METRIC_NAME
public static final String NINETY_NINETH_PERCENTILE_METRIC_NAME
- See Also:
- Constant Field Values
MetricsHistogram
public MetricsHistogram(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry,
String description,
boolean forwardBiased)
- Constructor to create a new histogram metric
- Parameters:
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 weight
MetricsHistogram
public MetricsHistogram(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry,
String description)
- Constructor create a new (forward biased) histogram metric
- Parameters:
nam
- the name to publish the metric underregistry
- where the metrics object will be registereddescription
- the metric's description
MetricsHistogram
public MetricsHistogram(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry)
- Constructor - create a new (forward biased) histogram metric
- Parameters:
nam
- the name of the metrics to be used to publish the metricregistry
- - where the metrics object will be registered
clear
public void clear()
- Clears all recorded values.
update
public void update(int val)
update
public void update(long val)
getCount
public long getCount()
getMax
public long getMax()
getMin
public long getMin()
getMean
public double getMean()
getStdDev
public double getStdDev()
getSnapshot
public com.yammer.metrics.stats.Snapshot getSnapshot()
pushMetric
public void pushMetric(org.apache.hadoop.metrics.MetricsRecord mr)
- Specified by:
pushMetric
in class org.apache.hadoop.metrics.util.MetricsBase
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.