seda.sandStorm.internal
Class ThreadPoolController
java.lang.Object
seda.sandStorm.internal.ThreadPoolController
public class ThreadPoolController
- extends java.lang.Object
The ThreadPoolController is responsible for dynamically adusting the
size of a given ThreadPool.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
CONTROLLER_DELAY
private static final int CONTROLLER_DELAY
- See Also:
- Constant Field Values
THROUGHPUT_MEASUREMENT_DELAY
private static final int THROUGHPUT_MEASUREMENT_DELAY
- See Also:
- Constant Field Values
AUTO_MAX_DETECT_DELAY
private static final int AUTO_MAX_DETECT_DELAY
- See Also:
- Constant Field Values
AUTO_MAX_DETECT_RANDOM_JUMP
private static final int AUTO_MAX_DETECT_RANDOM_JUMP
- See Also:
- Constant Field Values
SMOOTH_CONST
private static final double SMOOTH_CONST
- See Also:
- Constant Field Values
mgr
private ManagerIF mgr
tpvec
private java.util.Vector tpvec
autoMaxDetect
private boolean autoMaxDetect
controller
private java.lang.Thread controller
controllerDelay
private int controllerDelay
controllerThreshold
private int controllerThreshold
ThreadPoolController
public ThreadPoolController(ManagerIF mgr)
ThreadPoolController
public ThreadPoolController(ManagerIF mgr,
int delay,
int threshold)
register
public void register(StageWrapperIF stage,
ThreadPool tp)
- Register a thread pool with this controller, using the queue threshold
specified by the system configuration.
register
public void register(StageWrapperIF stage,
ThreadPool tp,
ProfilableIF metric)
- Register a thread pool with this controller, using the queue threshold
specified by the system configuration.
start
private void start()