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

mdw.sandStorm.internal
Class ResponseTimeController

java.lang.Object
  |
  +--mdw.sandStorm.internal.ResponseTimeController
Direct Known Subclasses:
ResponseTimeControllerDirect, ResponseTimeControllerMM1, ResponseTimeControllerPID

public abstract class ResponseTimeController
extends java.lang.Object

The ResponseTimeController attempts to keep the response time of a given stage below a given target by adjusting queue thresholds. size of a given ThreadPool.

Author:
Matt Welsh

Field Summary
protected static int INIT_THRESHOLD
           
protected static int MAX_THRESHOLD
           
protected static int MIN_THRESHOLD
           
protected  EnqueuePredicateIF pred
           
protected  StageWrapperIF stage
           
protected  double targetRT
           
 
Constructor Summary
protected ResponseTimeController(ManagerIF mgr, StageWrapperIF stage)
           
protected ResponseTimeController(ManagerIF mgr, StageWrapperIF stage, boolean setPredicate)
           
 
Method Summary
abstract  void adjustThreshold(QueueElementIF[] fetched, long serviceTime)
           
 
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

stage

protected StageWrapperIF stage

pred

protected EnqueuePredicateIF pred

targetRT

protected double targetRT
Constructor Detail

ResponseTimeController

protected ResponseTimeController(ManagerIF mgr,
                                 StageWrapperIF stage,
                                 boolean setPredicate)
                          throws java.lang.IllegalArgumentException

ResponseTimeController

protected ResponseTimeController(ManagerIF mgr,
                                 StageWrapperIF stage)
Method Detail

adjustThreshold

public abstract void adjustThreshold(QueueElementIF[] fetched,
                                     long serviceTime)

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