com.onionnetworks.antflow.job
Class ExecutorFactoryImpl
java.lang.Object
com.onionnetworks.antflow.job.ExecutorFactoryImpl
- All Implemented Interfaces:
- ExecutorFactory
- public class ExecutorFactoryImpl
- extends java.lang.Object
- implements ExecutorFactory
Used to store the per-Task executors. Also provides status dumps.
|
Method Summary |
protected EDU.oswego.cs.dl.util.concurrent.Executor |
createExecutor(java.lang.String key,
int size)
|
void |
dumpState()
|
EDU.oswego.cs.dl.util.concurrent.Executor |
getExecutor(java.lang.String key,
int size)
Gets executor for a key -- creates if necessary |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POOL_SIZE
public static final int POOL_SIZE
- See Also:
- Constant Field Values
ExecutorFactoryImpl
public ExecutorFactoryImpl()
getExecutor
public EDU.oswego.cs.dl.util.concurrent.Executor getExecutor(java.lang.String key,
int size)
- Gets executor for a key -- creates if necessary
- Specified by:
getExecutor in interface ExecutorFactory
- Parameters:
key - for looking up pre-existing pools if caching is donesize - number of threads in the executor if pooling. Ignored if a
new Executor isn't created
createExecutor
protected EDU.oswego.cs.dl.util.concurrent.Executor createExecutor(java.lang.String key,
int size)
dumpState
public void dumpState()
- Specified by:
dumpState in interface ExecutorFactory
Copyright © 2003-2004 Onion Networks. All Rights Reserved.