com.grandcentral.appstats.util
Class RateCalculatorThread
java.lang.Object
|
+--java.util.TimerTask
|
+--com.grandcentral.appstats.util.RateCalculatorThread
- All Implemented Interfaces:
- java.lang.Runnable
- public class RateCalculatorThread
- extends java.util.TimerTask
given a Task, a collection of stat names, wakes up every timewindow ms.
and calculates a rate by the change in stat values over timewindow.
| Methods inherited from class java.util.TimerTask |
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SUFFIX_RATE
public static final java.lang.String SUFFIX_RATE
SUFFIX_SUM0BURGER
public static final java.lang.String SUFFIX_SUM0BURGER
DEFAULT_TIMEWINDOW
public static final long DEFAULT_TIMEWINDOW
RateCalculatorThread
public RateCalculatorThread()
RateCalculatorThread
public RateCalculatorThread(long timeWindow)
setTask
public void setTask(Task src)
setStatNamesCollection
public void setStatNamesCollection(java.util.Collection c)
setTimeWindow
public void setTimeWindow(long timeWindow_ms)
start
public void start()
stop
public void stop()
run
public void run()
- Overrides:
run in class java.util.TimerTask