More information: http://www.cs.berkeley.edu/~mdw/proj/seda/

seda.sandStorm.internal
Class ResponseTimeControllerMM1

java.lang.Object
  |
  +--seda.sandStorm.internal.ResponseTimeController
        |
        +--seda.sandStorm.internal.ResponseTimeControllerMM1
All Implemented Interfaces:
ResponseTimeControllerIF

public class ResponseTimeControllerMM1
extends ResponseTimeController

An implementation of ResponseTimeController that models the stage as an M/M/1 queue.

Author:
Matt Welsh

Field Summary
protected static int INIT_THRESHOLD
           
protected static int MAX_THRESHOLD
           
protected static int MIN_THRESHOLD
           
 
Fields inherited from class seda.sandStorm.internal.ResponseTimeController
pred, stage, targetRT
 
Constructor Summary
ResponseTimeControllerMM1(ManagerIF mgr, StageWrapperIF stage)
           
 
Method Summary
 void adjustThreshold(QueueElementIF[] fetched, long procTime)
          Invoked by the stage's thread manager to adjust admission control parameters.
 void adjustThreshold(QueueElementIF[] fetched, long startTime, long endTime, boolean isFirst, int numThreads)
           
 void disable()
          Disable the response time controller.
 void enable()
          Enable the response time controller.
 
Methods inherited from class seda.sandStorm.internal.ResponseTimeController
getTarget, setTarget
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INIT_THRESHOLD

protected static final int INIT_THRESHOLD

MIN_THRESHOLD

protected static final int MIN_THRESHOLD

MAX_THRESHOLD

protected static final int MAX_THRESHOLD
Constructor Detail

ResponseTimeControllerMM1

public ResponseTimeControllerMM1(ManagerIF mgr,
                                 StageWrapperIF stage)
                          throws java.lang.IllegalArgumentException
Method Detail

enable

public void enable()
Description copied from interface: ResponseTimeControllerIF
Enable the response time controller.
Overrides:
enable in class ResponseTimeController

disable

public void disable()
Description copied from interface: ResponseTimeControllerIF
Disable the response time controller.
Overrides:
disable in class ResponseTimeController

adjustThreshold

public void adjustThreshold(QueueElementIF[] fetched,
                            long startTime,
                            long endTime,
                            boolean isFirst,
                            int numThreads)

adjustThreshold

public void adjustThreshold(QueueElementIF[] fetched,
                            long procTime)
Description copied from interface: ResponseTimeControllerIF
Invoked by the stage's thread manager to adjust admission control parameters.
Overrides:
adjustThreshold in class ResponseTimeController

More information: http://www.cs.berkeley.edu/~mdw/proj/seda/