org.globus.ogsa.server
Class ServiceThreadPool

java.lang.Object
  extended byorg.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.


Field Summary
protected  org.apache.axis.AxisEngine engine
           
protected  ServiceRequestQueue queue
           
 
Constructor Summary
ServiceThreadPool(ServiceRequestQueue queue, org.apache.axis.AxisEngine engine)
           
 
Method Summary
protected  ServiceThread createThread()
           
 int getThreads()
           
 void removeThread(ServiceThread thread)
           
 void startThreads(int threads)
           
 void stopThreads()
           
 void stopThreads(int numThreads)
           
 void waitForThreads()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queue

protected ServiceRequestQueue queue

engine

protected org.apache.axis.AxisEngine engine
Constructor Detail

ServiceThreadPool

public ServiceThreadPool(ServiceRequestQueue queue,
                         org.apache.axis.AxisEngine engine)
Method Detail

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.