|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tomcat.util.threads.ThreadPool | +--org.apache.tomcat.util.threads.ThreadPoolMX
Manageable thread pool
Nested Class Summary |
Nested classes inherited from class org.apache.tomcat.util.threads.ThreadPool |
ThreadPool.ControlRunnable, ThreadPool.MonitorRunnable, ThreadPool.ThreadPoolListener |
Field Summary | |
protected java.lang.String |
domain
|
protected java.lang.String |
name
|
Fields inherited from class org.apache.tomcat.util.threads.ThreadPool |
currentThreadCount, currentThreadsBusy, isDaemon, listeners, MAX_SPARE_THREADS, MAX_THREADS, maxSpareThreads, maxThreads, MIN_SPARE_THREADS, minSpareThreads, monitor, pool, stopThePool, threads, WORK_WAIT_TIMEOUT |
Constructor Summary | |
ThreadPoolMX()
|
Method Summary | |
void |
addThread(java.lang.Thread t,
ThreadPool.ControlRunnable cr)
|
void |
addThreadPoolListener(ThreadPool.ThreadPoolListener tpl)
|
protected void |
notifyThreadEnd(ThreadPool.ControlRunnable c)
Inform the pool that the specific thread finish. |
void |
removeThread(java.lang.Thread t)
|
protected void |
returnController(ThreadPool.ControlRunnable c)
Returns the thread to the pool. |
void |
runIt(ThreadPoolRunnable r)
Executes a given Runnable on a thread in the pool, block if needed. |
void |
shutdown()
Stop the thread pool |
void |
start()
|
java.lang.String[] |
threadParam()
Return an array with the current "param" ( XXX better name ? |
java.lang.String[] |
threadStatus()
Return an array with the status of each thread. |
java.lang.String |
threadStatusString()
Debug display of the stage of each thread. |
Methods inherited from class org.apache.tomcat.util.threads.ThreadPool |
adjustLimits, checkSpareControllers, createThreadPool, getCurrentThreadCount, getCurrentThreadsBusy, getDaemon, getDebug, getMaxSpareThreads, getMaxThreads, getMinSpareThreads, getMonitor, getThreads, isDaemon, logFull, openThreads, setDaemon, setMaxSpareThreads, setMaxThreads, setMinSpareThreads |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String domain
protected java.lang.String name
Constructor Detail |
public ThreadPoolMX()
Method Detail |
public void start()
start
in class ThreadPool
public void addThread(java.lang.Thread t, ThreadPool.ControlRunnable cr)
addThread
in class ThreadPool
public void removeThread(java.lang.Thread t)
removeThread
in class ThreadPool
public void addThreadPoolListener(ThreadPool.ThreadPoolListener tpl)
addThreadPoolListener
in class ThreadPool
public void runIt(ThreadPoolRunnable r)
runIt
in class ThreadPool
public void shutdown()
shutdown
in class ThreadPool
protected void returnController(ThreadPool.ControlRunnable c)
returnController
in class ThreadPool
protected void notifyThreadEnd(ThreadPool.ControlRunnable c)
notifyThreadEnd
in class ThreadPool
public java.lang.String threadStatusString()
public java.lang.String[] threadStatus()
public java.lang.String[] threadParam()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |