org.apache.hadoop.hbase.metrics
Class MetricsRate

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

public class MetricsRate
extends org.apache.hadoop.metrics.util.MetricsBase

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.


Field Summary
 
Fields inherited from class org.apache.hadoop.metrics.util.MetricsBase
NO_DESCRIPTION
 
Constructor Summary
MetricsRate(String name, org.apache.hadoop.metrics.util.MetricsRegistry registry)
           
MetricsRate(String name, org.apache.hadoop.metrics.util.MetricsRegistry registry, String description)
           
 
Method Summary
 float getPreviousIntervalValue()
           
 void inc()
           
 void inc(int incr)
           
 void pushMetric(org.apache.hadoop.metrics.MetricsRecord mr)
           
 
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

MetricsRate

public MetricsRate(String name,
                   org.apache.hadoop.metrics.util.MetricsRegistry registry,
                   String description)

MetricsRate

public MetricsRate(String name,
                   org.apache.hadoop.metrics.util.MetricsRegistry registry)
Method Detail

inc

public void inc(int incr)

inc

public void inc()

pushMetric

public void pushMetric(org.apache.hadoop.metrics.MetricsRecord mr)
Specified by:
pushMetric in class org.apache.hadoop.metrics.util.MetricsBase

getPreviousIntervalValue

public float getPreviousIntervalValue()


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.