org.globus.ogsa.server
Class ServiceThreadPool
java.lang.Object
org.globus.ogsa.server.ServiceThreadPool
- public class ServiceThreadPool
- extends java.lang.Object
This class is responsible for managing a set of threads.
New threads can be added to the pool at any given time.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
queue
protected ServiceRequestQueue queue
engine
protected org.apache.axis.AxisEngine engine
ServiceThreadPool
public ServiceThreadPool(ServiceRequestQueue queue,
org.apache.axis.AxisEngine engine)
startThreads
public void startThreads(int threads)
getThreads
public int getThreads()
createThread
protected ServiceThread createThread()
stopThreads
public void stopThreads(int numThreads)
stopThreads
public void stopThreads()
removeThread
public void removeThread(ServiceThread thread)
waitForThreads
public void waitForThreads()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.