seda.sandStorm.api.internal
Interface StageStatsIF

All Known Implementing Classes:
StageStats

public interface StageStatsIF

This interface allows various components of the system to record and gather statistics about the stage during execution.


Method Summary
 double get90thRT()
          Get a moving average of the stage's 90th percentile response time in msec.
 double getServiceRate()
          Get a moving average of the stage's service rate.
 long getTotalEvents()
          Get a running total of the number of processed events.
 void record90thRT(double rt_sample)
          Record a 90th percentile response time sample in msec.
 void recordServiceRate(int numEvents, long time)
          Record a service rate sample.
 void reset()
          Reset all statistics.
 

Method Detail

reset

void reset()
Reset all statistics.


recordServiceRate

void recordServiceRate(int numEvents,
                       long time)
Record a service rate sample.


getServiceRate

double getServiceRate()
Get a moving average of the stage's service rate.


getTotalEvents

long getTotalEvents()
Get a running total of the number of processed events.


record90thRT

void record90thRT(double rt_sample)
Record a 90th percentile response time sample in msec.


get90thRT

double get90thRT()
Get a moving average of the stage's 90th percentile response time in msec.