org.apache.hadoop.hbase.metrics
Class ExactCounterMetric
java.lang.Object
org.apache.hadoop.metrics.util.MetricsBase
org.apache.hadoop.hbase.metrics.ExactCounterMetric
Deprecated.
@Deprecated
public class ExactCounterMetric
- extends org.apache.hadoop.metrics.util.MetricsBase
Fields inherited from class org.apache.hadoop.metrics.util.MetricsBase |
NO_DESCRIPTION |
Constructor Summary |
ExactCounterMetric(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry)
Deprecated. Constructor creates a new ExactCounterMetric |
ExactCounterMetric(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry,
String description,
int topN)
Deprecated. Constructor to create a new counter 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 |
ExactCounterMetric
public ExactCounterMetric(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry,
String description,
int topN)
- Deprecated.
- Constructor to create a new counter metric
- Parameters:
nam
- the name to publish this metric underregistry
- where the metrics object will be registereddescription
- metrics descriptiontopN
- how many 'keys' to publish metrics on
ExactCounterMetric
public ExactCounterMetric(String nam,
org.apache.hadoop.metrics.util.MetricsRegistry registry)
- Deprecated.
- Constructor creates a new ExactCounterMetric
- Parameters:
nam
- the name of the metrics to be used to publish the metricregistry
- where the metrics object will be registered
update
public void update(String type)
- Deprecated.
update
public void update(String type,
long count)
- Deprecated.
getTop
public List<Pair<String,Long>> getTop(int n)
- Deprecated.
pushMetric
public void pushMetric(org.apache.hadoop.metrics.MetricsRecord mr)
- Deprecated.
- Specified by:
pushMetric
in class org.apache.hadoop.metrics.util.MetricsBase
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.