seda.sandStorm.internal
Class ThreadPoolController

java.lang.Object
  extended by seda.sandStorm.internal.ThreadPoolController

public class ThreadPoolController
extends java.lang.Object

The ThreadPoolController is responsible for dynamically adusting the size of a given ThreadPool.

Author:
Matt Welsh

Nested Class Summary
(package private)  class ThreadPoolController.controllerThread
          Internal class implementing the controller.
(package private)  class ThreadPoolController.tpcClient
          Internal class representing a single TPC-controlled thread pool.
 
Constructor Summary
ThreadPoolController(ManagerIF mgr)
           
ThreadPoolController(ManagerIF mgr, int delay, int threshold)
           
 
Method Summary
 void register(StageWrapperIF stage, ThreadPool tp)
          Register a thread pool with this controller, using the queue threshold specified by the system configuration.
 void register(StageWrapperIF stage, ThreadPool tp, ProfilableIF metric)
          Register a thread pool with this controller, using the queue threshold specified by the system configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPoolController

public ThreadPoolController(ManagerIF mgr)

ThreadPoolController

public ThreadPoolController(ManagerIF mgr,
                            int delay,
                            int threshold)
Method Detail

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.