org.apache.hadoop.hbase.metrics
Class ExactCounterMetric

java.lang.Object
  extended by org.apache.hadoop.metrics.util.MetricsBase
      extended by org.apache.hadoop.hbase.metrics.ExactCounterMetric

Deprecated.

@Deprecated
public class ExactCounterMetric
extends org.apache.hadoop.metrics.util.MetricsBase


Field Summary
 
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
 
Method Summary
 List<Pair<String,Long>> getTop(int n)
          Deprecated.  
 void pushMetric(org.apache.hadoop.metrics.MetricsRecord mr)
          Deprecated.  
 void update(String type)
          Deprecated.  
 void update(String type, long count)
          Deprecated.  
 
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
 

Constructor Detail

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 under
registry - where the metrics object will be registered
description - metrics description
topN - 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 metric
registry - where the metrics object will be registered
Method Detail

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 © 2007–2016 The Apache Software Foundation. All rights reserved.