HBASE-6809 Deprecate Old metrics classes.

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1387359 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2012-09-18 20:58:26 +00:00
parent 053fc8e7ba
commit 65a2962cdc
8 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,7 @@ import com.google.common.base.Function;
import com.google.common.collect.Lists;
import com.google.common.collect.MapMaker;
@Deprecated
public class ExactCounterMetric extends MetricsBase {
private static final int DEFAULT_TOP_N = 5;

View File

@ -31,6 +31,7 @@ import javax.management.ObjectName;
/**
* Exports HBase system information as an MBean for JMX observation.
*/
@Deprecated
@InterfaceAudience.Private
public class HBaseInfo {
protected static class HBaseInfoMBean extends MetricsMBeanBase {

View File

@ -45,6 +45,7 @@ import org.apache.hadoop.metrics.util.MetricsRegistry;
* org.apache.hadoop.metrics.util implementations.
*
*/
@Deprecated
@InterfaceAudience.Private
public class MetricsMBeanBase extends MetricsDynamicMBeanBase {

View File

@ -29,6 +29,7 @@ import org.apache.hadoop.util.StringUtils;
* Publishes a rate based on a counter - you increment the counter each
* time an event occurs (eg: an RPC call) and this publishes a rate.
*/
@Deprecated
@InterfaceAudience.Private
public class MetricsRate extends MetricsBase {
private static final Log LOG = LogFactory.getLog("org.apache.hadoop.hbase.metrics");

View File

@ -27,6 +27,7 @@ import org.apache.hadoop.metrics.util.MetricsRegistry;
/**
* Publishes a string to the metrics collector
*/
@Deprecated
@InterfaceAudience.Private
public class MetricsString extends MetricsBase {
private static final Log LOG = LogFactory.getLog("org.apache.hadoop.hbase.metrics");

View File

@ -29,6 +29,7 @@ import org.apache.hadoop.util.StringUtils;
* This class extends MetricsTimeVaryingRate to let the metrics
* persist past a pushMetric() call
*/
@Deprecated
@InterfaceAudience.Private
public class PersistentMetricsTimeVaryingRate extends MetricsTimeVaryingRate {
protected static final Log LOG =

View File

@ -34,6 +34,7 @@ import org.apache.hadoop.metrics.spi.OutputRecord;
/**
* Add timestamp to {@link org.apache.hadoop.metrics.file.FileContext#emitRecord(String, String, OutputRecord)}.
*/
@Deprecated
@InterfaceAudience.Private
public class TimeStampingFileContext extends FileContext {
// Copies bunch of FileContext here because writer and file are private in

View File

@ -30,6 +30,7 @@ import com.yammer.metrics.stats.Snapshot;
import com.yammer.metrics.stats.UniformSample;
import com.yammer.metrics.stats.ExponentiallyDecayingSample;
@Deprecated
public class MetricsHistogram extends MetricsBase {
// 1028 items implies 99.9% CI w/ 5% margin of error