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 TransformerChainProcess.Event, Process.EventPointexceptions, failFast, filter, hasNext, index, messages, params, paused, resource, transformerlisteners, 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, transformaddListener, getListeners, onChangeHandler, setListenersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic ExecuteJobReader()
init() must be called by the calling API explicitly after calling BaseIterativeProcessor.setResource(Resource)@PostConstruct public void init() throws IOException, Exception
RealTimeLineReaderPostConstruct timeinit in interface RealTimeLineReader<Void>init in class BaseIterativeProcessor<Void,Void,Void>ExceptionIOExceptionpublic boolean isInitialized()
throws Exception
RealTimeLineReaderRealTimeLineReader.init() or PostConstruct phase
RealTimeLineReader.init() should be called upon the instance.Exceptionpublic void dispose()
throws Exception
RealTimeLineReaderResource & configuration set by Spring context
all other instance variables used will be re-set/disposed/cleared.Exceptionpublic Long size()
ResourceAwareRealTimeLineReaderpublic Void getState() throws Exception
ControllableProcessExceptionpublic void resumeFromState(Void state) throws Exception
ControllableProcessExceptionprotected void processValue(Object value)
BaseIterativeProcessor.getMessages()value - protected Void nextRecord()
nextRecord in class BaseIterativeProcessor<Void,Void,Void>public Long getCurrentRawIndex(Void row)
BaseIterativeProcessorBaseIterativeProcessor.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.