Skip navigation links


com.essbase.eas.server.fireforget
Class ThreadPoolManager

java.lang.Object
  extended by com.essbase.eas.server.fireforget.ThreadPoolManager


public class ThreadPoolManager
extends java.lang.Object

ThreadPoolManager Manages and deploys threads based on calls from WorkScheduler

Version:
1.00 07/18/2000
Author:
Brendan Gaul

Constructor Summary
ThreadPoolManager(WorkScheduler tr)
          Constructor creates and pre-allocates pool of WorkerThreads

 

Method Summary
 boolean assignWork(Work w)
          Remove thread from pool and assign Work to it
 boolean getShutdown()
          Returns state of shutdown
 boolean isThreadAvailable()
          Returns true if at least one WorkerThread is waiting in the pool
 void returnToQ(WorkerThread pwt)
          Returns finished thread to pool
 void shutdown()
          Notify all threads to shutdown

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ThreadPoolManager

public ThreadPoolManager(WorkScheduler tr)
Constructor creates and pre-allocates pool of WorkerThreads

Method Detail

isThreadAvailable

public boolean isThreadAvailable()
Returns true if at least one WorkerThread is waiting in the pool

shutdown

public void shutdown()
Notify all threads to shutdown

getShutdown

public boolean getShutdown()
Returns state of shutdown

returnToQ

public void returnToQ(WorkerThread pwt)
Returns finished thread to pool

assignWork

public boolean assignWork(Work w)
Remove thread from pool and assign Work to it

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.