|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object seda.sandStorm.internal.ResponseTimeController
public abstract class ResponseTimeController
The ResponseTimeController attempts to keep the response time of a given stage below a given target by adjusting admission control parameters for a stage.
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)
|
Method Summary | |
---|---|
abstract void |
adjustThreshold(QueueElementIF[] fetched,
long serviceTime)
Invoked by the stage's thread manager to adjust admission control parameters. |
abstract void |
disable()
Disable the response time controller. |
abstract void |
enable()
Enable the response time controller. |
double |
getTarget()
Return the response time target. |
void |
setTarget(double target)
Set the response time target in milliseconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int INIT_THRESHOLD
protected static final int MIN_THRESHOLD
protected static final int MAX_THRESHOLD
protected StageWrapperIF stage
protected EnqueuePredicateIF pred
protected double targetRT
Constructor Detail |
---|
protected ResponseTimeController(ManagerIF mgr, StageWrapperIF stage) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
Method Detail |
---|
public void setTarget(double target)
ResponseTimeControllerIF
setTarget
in interface ResponseTimeControllerIF
public double getTarget()
ResponseTimeControllerIF
getTarget
in interface ResponseTimeControllerIF
public abstract void adjustThreshold(QueueElementIF[] fetched, long serviceTime)
ResponseTimeControllerIF
adjustThreshold
in interface ResponseTimeControllerIF
public abstract void enable()
ResponseTimeControllerIF
enable
in interface ResponseTimeControllerIF
public abstract void disable()
ResponseTimeControllerIF
disable
in interface ResponseTimeControllerIF
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |