seda.sandStorm.internal
Class ResponseTimeControllerPID
java.lang.Object
seda.sandStorm.internal.ResponseTimeController
seda.sandStorm.internal.ResponseTimeControllerPID
- All Implemented Interfaces:
- ResponseTimeControllerIF
- public class ResponseTimeControllerPID
- extends ResponseTimeController
An implementation of ResponseTimeController that uses a PID control.
- Author:
- Matt Welsh
Method Summary |
void |
adjustThreshold(QueueElementIF[] fetched,
long procTime)
Invoked by the stage's thread manager to adjust admission control
parameters. |
void |
disable()
Disable the response time controller. |
void |
enable()
Enable the response time controller. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INIT_THRESHOLD
protected static final int INIT_THRESHOLD
- See Also:
- Constant Field Values
MIN_THRESHOLD
protected static final int MIN_THRESHOLD
- See Also:
- Constant Field Values
MAX_THRESHOLD
protected static final int MAX_THRESHOLD
- See Also:
- Constant Field Values
ResponseTimeControllerPID
public ResponseTimeControllerPID(ManagerIF mgr,
StageWrapperIF stage)
throws java.lang.IllegalArgumentException
enable
public void enable()
- Description copied from interface:
ResponseTimeControllerIF
- Enable the response time controller.
- Specified by:
enable
in interface ResponseTimeControllerIF
- Specified by:
enable
in class ResponseTimeController
disable
public void disable()
- Description copied from interface:
ResponseTimeControllerIF
- Disable the response time controller.
- Specified by:
disable
in interface ResponseTimeControllerIF
- Specified by:
disable
in class ResponseTimeController
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.
- Specified by:
adjustThreshold
in interface ResponseTimeControllerIF
- Specified by:
adjustThreshold
in class ResponseTimeController