public interface BatchJobResultAdapter
extends com.mulesoft.mule.runtime.module.batch.api.BatchJobResult
| Modifier and Type | Method and Description |
|---|---|
Map<String,com.mulesoft.mule.runtime.module.batch.api.BatchStepResult> |
getBatchStepResults()
Returns a
Map in which the key is the name of a step and the value is a BatchStepResult |
long |
incrementLoadedRecords(long howMany)
Increments the load records count by howMany
|
void |
setInputPhaseException(Exception inputPhaseException)
Sets an
Exception thrown in the input phase |
void |
setLoadingPhaseException(Exception loadingPhaseException)
Sets an
Exception thrown in the loading phase |
void |
setOnCompletePhaseException(Exception onCompleteStepException)
Sets an
Exception thrown in the on complete phase |
void |
setTotalRecords(long totalRecords)
sets the amount of total records that make for the owning
BatchJobInstance |
long |
startClock()
Starts tracking the time that a
BatchJobInstance has been processing since the moment that this method has been
invoked. |
long |
stopClock()
Signals that the owning
BatchJobInstance has stopped processing at the time this method was invoked |
void |
updateFor(BatchJobAdapter job,
Collection<Record> records)
Updates the values in this instance
|
getBatchJobInstanceId, getElapsedTimeInMillis, getFailedRecords, getInputPhaseException, getLoadedRecords, getLoadingPhaseException, getOnCompletePhaseException, getProcessedRecords, getResultForStep, getSuccessfulRecords, getTotalRecords, isFailedOnCompletePhase, isFailedOnInputPhase, isFailedOnLoadingPhaselong startClock()
BatchJobInstance has been processing since the moment that this method has been
invoked. After invoking this method, stopClock() has to be invoked at some point so that
BatchJobResult.getElapsedTimeInMillis() can eventually return a valid valuelong stopClock()
BatchJobInstance has stopped processing at the time this method was invokedBatchJobInstance has been processinglong incrementLoadedRecords(long howMany)
howMany - the amount of new records that have been loadedvoid updateFor(BatchJobAdapter job, Collection<Record> records)
job - the owning BatchJobAdapterrecords - a collection of Record processedvoid setTotalRecords(long totalRecords)
BatchJobInstancetotalRecords - the total amount of recordsvoid setInputPhaseException(Exception inputPhaseException)
Exception thrown in the input phaseinputPhaseException - a Exceptionvoid setLoadingPhaseException(Exception loadingPhaseException)
Exception thrown in the loading phaseloadingPhaseException - a Exceptionvoid setOnCompletePhaseException(Exception onCompleteStepException)
Exception thrown in the on complete phaseonCompleteStepException - a ExceptionCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.