public class ExecuteJobReader extends AbstractReader<Void,Void,Void>
BaseIterativeProcessor.getTransformer()
is a TransformerChain
then the first level chain elements are each considered a Different Job and each passed the BaseIterativeProcessor.getParams()
BaseIterativeProcessor.getTransformer()
return any String or List of String then those will be added to BaseIterativeProcessor.getMessages()
TODO: Add unit test case for Single & multiple Jobs in TransformerChain
Process.Event, Process.EventPoint
exceptions, failFast, filter, hasNext, index, messages, params, paused, resource, transformer
listeners, processState
Constructor and Description |
---|
ExecuteJobReader()
Default Constructor to allow lazy initialization
If so, init() must be called by the calling API explicitly after calling BaseIterativeProcessor.setResource(Resource) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Un-initialize reader, so that it maybe re consumed
Except for the main Resource & configuration set by Spring context
all other instance variables used will be re-set/disposed/cleared. |
Long |
getCurrentRawIndex(Void row)
Get the raw index/position on the source;
BaseIterativeProcessor.getCurrentIndex() only tracks the relevant position. |
Void |
getState()
Get current state of process
|
void |
init()
Allow lazy initialization of Reader in cases where the resource may not be known @
PostConstruct time |
boolean |
isInitialized()
Allow the calling API to determine if the reader has been initialized via
RealTimeLineReader.init() or PostConstruct phase
If not RealTimeLineReader.init() should be called upon the instance. |
protected Void |
nextRecord() |
protected void |
processValue(Object value)
Process the output for a Job step.
|
void |
resumeFromState(Void state)
Resume process from the given State provided
|
Long |
size()
Get number of tuples/records in resource
|
close, filter, getCurrentIndex, getCurrentTupleIdentifier, getExceptions, getFilter, getId, getMessages, getMeta, getParams, getResource, getSourceLocation, getTransformer, handleMiscException, hasNext, isFailFast, isPaused, kill, next, nextTupleResult, pause, remove, resume, setExceptions, setFailFast, setFilter, setId, setMessages, setMeta, setParams, setResource, setTransformer, stop, transform
addListener, getListeners, onChangeHandler, setListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public ExecuteJobReader()
init()
must be called by the calling API explicitly after calling BaseIterativeProcessor.setResource(Resource)
@PostConstruct public void init() throws IOException, Exception
RealTimeLineReader
PostConstruct
timeinit
in interface RealTimeLineReader<Void>
init
in class BaseIterativeProcessor<Void,Void,Void>
Exception
IOException
public boolean isInitialized() throws Exception
RealTimeLineReader
RealTimeLineReader.init()
or PostConstruct
phase
RealTimeLineReader.init()
should be called upon the instance.Exception
public void dispose() throws Exception
RealTimeLineReader
Resource
& configuration set by Spring context
all other instance variables used will be re-set/disposed/cleared.Exception
public Long size()
ResourceAwareRealTimeLineReader
public Void getState() throws Exception
ControllableProcess
Exception
public void resumeFromState(Void state) throws Exception
ControllableProcess
Exception
protected void processValue(Object value)
BaseIterativeProcessor.getMessages()
value
- protected Void nextRecord()
nextRecord
in class BaseIterativeProcessor<Void,Void,Void>
public Long getCurrentRawIndex(Void row)
BaseIterativeProcessor
BaseIterativeProcessor.getCurrentIndex()
only tracks the relevant position.
This method allows us to get the position on the source.
BaseIterativeProcessor.getCurrentIndex()
getCurrentRawIndex
in class BaseIterativeProcessor<Void,Void,Void>
Copyright © 2018. All rights reserved.