Class BatcherImpl
- java.lang.Object
-
- org.copperengine.core.batcher.impl.BatcherImpl
-
-
Constructor Summary
Constructors Constructor Description BatcherImpl(int numThreads)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
int
getNumThreads()
int
getQueueSize()
void
setBatchRunner(BatchRunner batchRunner)
void
setNumThreads(int numThreads)
void
setStatisticsCollector(RuntimeStatisticsCollector statisticsCollector)
void
shutdown()
void
startup()
<E extends BatchExecutor<E,T>,T extends BatchCommand<E,T>>
voidsubmitBatchCommand(BatchCommand<E,T> cmd)
-
-
-
Method Detail
-
setBatchRunner
public void setBatchRunner(BatchRunner batchRunner)
-
getNumThreads
public int getNumThreads()
- Specified by:
getNumThreads
in interfaceorg.copperengine.management.BatcherMXBean
-
setNumThreads
public void setNumThreads(int numThreads)
- Specified by:
setNumThreads
in interfaceorg.copperengine.management.BatcherMXBean
-
setStatisticsCollector
public void setStatisticsCollector(RuntimeStatisticsCollector statisticsCollector)
-
submitBatchCommand
public <E extends BatchExecutor<E,T>,T extends BatchCommand<E,T>> void submitBatchCommand(BatchCommand<E,T> cmd)
- Specified by:
submitBatchCommand
in interfaceBatcher
-
startup
public void startup()
-
shutdown
public void shutdown()
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceorg.copperengine.management.BatcherMXBean
-
getQueueSize
public int getQueueSize()
-
-