seda.sandStorm.internal
Class StageStats
java.lang.Object
|
+--seda.sandStorm.internal.StageStats
- All Implemented Interfaces:
- StageStatsIF
- public class StageStats
- extends java.lang.Object
- implements StageStatsIF
This class provides controllers with a view of statistics gathered
by the stage internally during execution.
- Author:
- Matt Welsh
|
Method Summary |
double |
get90thRT()
Get 90th percentile response time in msec. |
double |
getServiceRate()
Return a moving average of the service rate. |
long |
getTotalEvents()
Get total number of processed events. |
void |
record90thRT(double rt_sample)
Record 90th percentile response time in msec. |
void |
recordServiceRate(int numEvents,
long time)
Record the service time for numEvents taking 'time' msec to
be processed. |
void |
reset()
Reset all statistics. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stage
StageWrapperIF stage
StageStats
public StageStats(StageWrapperIF stage)
reset
public void reset()
- Reset all statistics.
- Specified by:
reset in interface StageStatsIF
getServiceRate
public double getServiceRate()
- Return a moving average of the service rate.
- Specified by:
getServiceRate in interface StageStatsIF
getTotalEvents
public long getTotalEvents()
- Get total number of processed events.
- Specified by:
getTotalEvents in interface StageStatsIF
recordServiceRate
public void recordServiceRate(int numEvents,
long time)
- Record the service time for numEvents taking 'time' msec to
be processed.
- Specified by:
recordServiceRate in interface StageStatsIF
record90thRT
public void record90thRT(double rt_sample)
- Record 90th percentile response time in msec.
- Specified by:
record90thRT in interface StageStatsIF
get90thRT
public double get90thRT()
- Get 90th percentile response time in msec.
- Specified by:
get90thRT in interface StageStatsIF