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:
parent
053fc8e7ba
commit
65a2962cdc
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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 =
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue