org.apache.accumulo.server.tabletserver
Class Rate

java.lang.Object
  extended by org.apache.accumulo.server.tabletserver.Rate

public class Rate
extends Object


Constructor Summary
Rate(double ratio)
          Turn a counter into an exponentially smoothed rate over time.
 
Method Summary
 double rate()
           
 double update(long counter)
           
 double update(long when, long counter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rate

public Rate(double ratio)
Turn a counter into an exponentially smoothed rate over time.

Parameters:
ratio - the rate at which each update influences the curve; must be (0., 1.0)
Method Detail

update

public double update(long counter)

update

public double update(long when,
                     long counter)

rate

public double rate()


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