org.apache.hadoop.hbase.metrics
Class MetricsRate

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

public class MetricsRate
extends Object

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.


Constructor Summary
MetricsRate(String name)
           
 
Method Summary
 float getPreviousIntervalValue()
           
 void inc()
           
 void inc(int incr)
           
 void pushMetric(org.apache.hadoop.metrics.MetricsRecord mr)
           
 
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)
Method Detail

inc

public void inc(int incr)

inc

public void inc()

pushMetric

public void pushMetric(org.apache.hadoop.metrics.MetricsRecord mr)

getPreviousIntervalValue

public float getPreviousIntervalValue()


Copyright © 2009 The Apache Software Foundation