Package org.copperengine.core.common
Class DefaultProcessorPoolManager<T extends ProcessorPool>
- java.lang.Object
-
- org.copperengine.core.common.DefaultProcessorPoolManager<T>
-
- Type Parameters:
T
- type of processor pool to be managed
- All Implemented Interfaces:
ProcessorPoolManager<T>
public class DefaultProcessorPoolManager<T extends ProcessorPool> extends java.lang.Object implements ProcessorPoolManager<T>
Default implementation of theProcessorPoolManager
interface.
-
-
Constructor Summary
Constructors Constructor Description DefaultProcessorPoolManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProcessorPool(T pool)
T
getProcessorPool(java.lang.String poolId)
java.util.List<java.lang.String>
getProcessorPoolIds()
java.util.Collection<T>
processorPools()
void
removeProcessorPool(java.lang.String poolId)
void
setEngine(ProcessingEngine engine)
void
setProcessorPools(java.util.List<T> processorPools)
void
shutdown()
void
startup()
-
-
-
Method Detail
-
getProcessorPool
public T getProcessorPool(java.lang.String poolId)
- Specified by:
getProcessorPool
in interfaceProcessorPoolManager<T extends ProcessorPool>
-
addProcessorPool
public void addProcessorPool(T pool)
- Specified by:
addProcessorPool
in interfaceProcessorPoolManager<T extends ProcessorPool>
-
getProcessorPoolIds
public java.util.List<java.lang.String> getProcessorPoolIds()
- Specified by:
getProcessorPoolIds
in interfaceProcessorPoolManager<T extends ProcessorPool>
-
removeProcessorPool
public void removeProcessorPool(java.lang.String poolId)
- Specified by:
removeProcessorPool
in interfaceProcessorPoolManager<T extends ProcessorPool>
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfaceProcessorPoolManager<T extends ProcessorPool>
-
setProcessorPools
public void setProcessorPools(java.util.List<T> processorPools)
- Specified by:
setProcessorPools
in interfaceProcessorPoolManager<T extends ProcessorPool>
-
startup
public void startup()
- Specified by:
startup
in interfaceProcessorPoolManager<T extends ProcessorPool>
-
setEngine
public void setEngine(ProcessingEngine engine)
- Specified by:
setEngine
in interfaceProcessorPoolManager<T extends ProcessorPool>
-
processorPools
public java.util.Collection<T> processorPools()
- Specified by:
processorPools
in interfaceProcessorPoolManager<T extends ProcessorPool>
-
-