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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RBThreadPool
public RBThreadPool(java.lang.String rbaccount,
int numWorkers,
RBQueue currQueue)
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)