| java.lang.Object org.griphyn.cPlanner.engine.ThreadPool
ThreadPool | public class ThreadPool (Code) | | This maintains a pool of authenticate threads that authenticate against a
particular resource.
author: Karan Vahi version: $Revision: 50 $ |
Inner Class :class AuthenticateThread implements Runnable | |
Inner Class :class ConditionVariable | |
Field Summary | |
final public static int | NUMBER_OF_THREADS The maximum number of authentication threads that are spawned. |
Method Summary | |
public void | acceptRequest(Object request) Accepts an authentication request, that has to be serviced. | public void | shutdown() This method is called to ensure the clean shutdown of threads, and
waits till all the requests have been serviced. |
NUMBER_OF_THREADS | final public static int NUMBER_OF_THREADS(Code) | | The maximum number of authentication threads that are spawned.
|
ThreadPool | public ThreadPool(PegasusProperties properties, Set pools)(Code) | | The overloaded constructor.
Parameters: properties - the PegasusProperties to be used. Parameters: pools - the set of pools against which the user is authenticating. |
acceptRequest | public void acceptRequest(Object request)(Code) | | Accepts an authentication request, that has to be serviced. It is added
to queue of requests.
|
shutdown | public void shutdown()(Code) | | This method is called to ensure the clean shutdown of threads, and
waits till all the requests have been serviced.
|
|
|