com.ibm.redback.threadpool
Class RBThreadPool

java.lang.Object
  |
  +--com.ibm.redback.threadpool.RBThreadPool

public class RBThreadPool
extends java.lang.Object


Constructor Summary
RBThreadPool(java.lang.String rbaccount, int numWorkers, RBQueue currQueue)
           
 
Method Summary
 void add(RBRunnable r)
           
 void add(java.lang.Runnable r)
           
 int getMaxQ()
           
 int getNumThreads()
           
 int getQueueSize()
           
 RBQueue getRBQueue()
           
 int getReqNo()
           
 java.util.Calendar getStartTime()
           
 java.lang.String[] getWorkerStatus()
           
 void setRBQueue(RBQueue aQueue)
          Allow a queue to be assigned.
 void stopWorkers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RBThreadPool

public RBThreadPool(java.lang.String rbaccount,
                    int numWorkers,
                    RBQueue currQueue)
Method Detail

getStartTime

public java.util.Calendar getStartTime()

stopWorkers

public void stopWorkers()

getWorkerStatus

public java.lang.String[] getWorkerStatus()

setRBQueue

public void setRBQueue(RBQueue aQueue)
Allow a queue to be assigned. This is used by the Control class if a ThreadPool is removed. Its queue is preserved and when the ThreadPool is restarted, an existing queue will then be used.

getRBQueue

public RBQueue getRBQueue()

getQueueSize

public int getQueueSize()

getNumThreads

public int getNumThreads()

add

public void add(java.lang.Runnable r)

getReqNo

public int getReqNo()

getMaxQ

public int getMaxQ()

add

public void add(RBRunnable r)