|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.accumulo.server.tabletserver.Rate
public class Rate
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 |
---|
public Rate(double ratio)
ratio
- the rate at which each update influences the curve; must be (0., 1.0)Method Detail |
---|
public double update(long counter)
public double update(long when, long counter)
public double rate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |