|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.locomotive.server.ThreadPoolManager
Constructor Summary | |
ThreadPoolManager()
Default constructor for the thread pool manager. |
|
ThreadPoolManager(Log lg,
int min,
int max)
|
Method Summary | |
int |
getActiveCount()
|
int |
getMaxCount()
|
int |
getMaxThreads()
Get the maximum number of threads for this pool. |
int |
getMinCount()
|
int |
getMinThreads()
Get the minimum number of threads for this pool. |
PooledThread |
getPooledThread()
|
int |
getPoolSize()
|
boolean |
isRunning()
Check if the service running. |
void |
returnToPool(PooledThread pt)
|
void |
setLog(Log log)
Set the server log for this pool. |
void |
setMaxThreads(int maxThreads)
Set the maximum number of threads this pool can have. |
void |
setMinThreads(int minThreads)
Set the minimum number of threads this pool can have. |
void |
startService()
Start the thread pool manager. |
void |
stopService()
Stop the thread pool manager. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ThreadPoolManager(Log lg, int min, int max)
public ThreadPoolManager()
Method Detail |
public void startService() throws ServiceException
public void stopService() throws ServiceException
public boolean isRunning()
public PooledThread getPooledThread()
public void returnToPool(PooledThread pt)
public int getActiveCount()
public int getPoolSize()
public int getMaxCount()
public int getMinCount()
public void setMaxThreads(int maxThreads)
maxThreads
- Maximum number of threads for this pool.public int getMaxThreads()
public void setMinThreads(int minThreads)
minThreads
- Minimum number of threads for this pool.public int getMinThreads()
public void setLog(Log log)
log
- the log
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |