public abstract class BatchProcessor<INPUT,Target> extends net.idea.modbcum.p.DefaultAmbitProcessor<INPUT,net.idea.modbcum.i.batch.IBatchStatistics> implements IBatchProcessor<INPUT,Target,net.idea.modbcum.i.batch.IBatchStatistics>
Modifier and Type | Field and Description |
---|---|
protected boolean |
cancelled |
protected net.idea.modbcum.i.processors.ProcessorsChain<Target,net.idea.modbcum.i.batch.IBatchStatistics,net.idea.modbcum.i.processors.IProcessor> |
processor |
static String |
PROPERTY_BATCHSTATS |
protected long |
timeout |
Constructor and Description |
---|
BatchProcessor() |
BatchProcessor(net.idea.modbcum.i.processors.ProcessorsChain<Target,net.idea.modbcum.i.batch.IBatchStatistics,net.idea.modbcum.i.processors.IProcessor> processor) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
protected abstract void |
closeIterator(Iterator iterator) |
net.idea.modbcum.i.processors.ProcessorsChain<Target,net.idea.modbcum.i.batch.IBatchStatistics,net.idea.modbcum.i.processors.IProcessor> |
getProcessorChain() |
long |
getTimeout() |
net.idea.modbcum.i.batch.IBatchStatistics |
process(INPUT target) |
void |
setProcessorChain(net.idea.modbcum.i.processors.ProcessorsChain<Target,net.idea.modbcum.i.batch.IBatchStatistics,net.idea.modbcum.i.processors.IProcessor> processor) |
void |
setTimeout(long timeout) |
addPropertyChangeListener, addPropertyChangeListener, close, getID, isEnabled, open, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
afterProcessing, beforeProcessing, getIterator, getResult, onError, onItemProcessed, onItemRead
public static String PROPERTY_BATCHSTATS
protected net.idea.modbcum.i.processors.ProcessorsChain<Target,net.idea.modbcum.i.batch.IBatchStatistics,net.idea.modbcum.i.processors.IProcessor> processor
protected boolean cancelled
protected long timeout
public BatchProcessor()
public BatchProcessor(net.idea.modbcum.i.processors.ProcessorsChain<Target,net.idea.modbcum.i.batch.IBatchStatistics,net.idea.modbcum.i.processors.IProcessor> processor)
public net.idea.modbcum.i.processors.ProcessorsChain<Target,net.idea.modbcum.i.batch.IBatchStatistics,net.idea.modbcum.i.processors.IProcessor> getProcessorChain()
getProcessorChain
in interface IBatchProcessor<INPUT,Target,net.idea.modbcum.i.batch.IBatchStatistics>
public void setProcessorChain(net.idea.modbcum.i.processors.ProcessorsChain<Target,net.idea.modbcum.i.batch.IBatchStatistics,net.idea.modbcum.i.processors.IProcessor> processor)
setProcessorChain
in interface IBatchProcessor<INPUT,Target,net.idea.modbcum.i.batch.IBatchStatistics>
protected abstract void closeIterator(Iterator iterator) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
public net.idea.modbcum.i.batch.IBatchStatistics process(INPUT target) throws net.idea.modbcum.i.exceptions.AmbitException
process
in interface net.idea.modbcum.i.processors.IProcessor<INPUT,net.idea.modbcum.i.batch.IBatchStatistics>
net.idea.modbcum.i.exceptions.AmbitException
public void cancel()
cancel
in interface IBatchProcessor<INPUT,Target,net.idea.modbcum.i.batch.IBatchStatistics>
public void setTimeout(long timeout)
setTimeout
in interface IBatchProcessor<INPUT,Target,net.idea.modbcum.i.batch.IBatchStatistics>
public long getTimeout()
getTimeout
in interface IBatchProcessor<INPUT,Target,net.idea.modbcum.i.batch.IBatchStatistics>
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.