org.jcomponent.threadpool.impl
Class AvalonCommonsThreadPool
java.lang.Object
org.jcomponent.threadpool.impl.AbstractThreadPool
org.jcomponent.threadpool.impl.CommonsThreadPool
org.jcomponent.threadpool.impl.AvalonCommonsThreadPool
- All Implemented Interfaces:
- org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, org.apache.commons.pool.PoolableObjectFactory, ThreadPool
- public class AvalonCommonsThreadPool
- extends CommonsThreadPool
- implements org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.activity.Disposable
The AvalonCommonsThreadPool wraps the CommonsThreadPool for
Avalon-compatible systems.
- Version:
- $Revision: 1.5 $ $Date: 2003/10/12 11:18:31 $
- Author:
- Peter Donald
- Phoenix.service:
- type="ThreadPool"
Method Summary |
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Configure the pool. |
void |
dispose()
|
void |
enableLogging(org.apache.avalon.framework.logger.Logger logger)
Set the logger for component. |
void |
initialize()
Initialize the monitor then initialize parent class. |
Methods inherited from class org.jcomponent.threadpool.impl.CommonsThreadPool |
activateObject, createWorker, destroyObject, destroyWorker, getCommonsConfig, getWorker, makeObject, passivateObject, releaseWorker, setMonitor, setup, shutdown, validateObject |
Methods inherited from class org.jcomponent.threadpool.impl.AbstractThreadPool |
execute, execute, getDisposeTime, getName, getPriority, getThreadGroup, isDaemon, newWorkerThread, setDaemon, setDisposeTime, setName, setPriority, setThreadGroup, shutdownInUseThreads, threadCompleted |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AvalonCommonsThreadPool
public AvalonCommonsThreadPool()
enableLogging
public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
- Set the logger for component.
- Specified by:
enableLogging
in interface org.apache.avalon.framework.logger.LogEnabled
- Parameters:
logger
- the logger for component.
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Configure the pool. See class javadocs for example.
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Parameters:
configuration
- the configuration object
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
- if malformed configuration
initialize
public void initialize()
throws Exception
- Initialize the monitor then initialize parent class.
- Specified by:
initialize
in interface org.apache.avalon.framework.activity.Initializable
- Throws:
Exception
dispose
public void dispose()
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
Copyright © 2000-2003 The Spice Group. All Rights Reserved.