public final class ImmutableBatchJobResult extends Object implements BatchJobResult
ImmutableBatchJobResult| Constructor and Description |
|---|
ImmutableBatchJobResult(BatchJobResult jobResult) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBatchJobInstanceId()
The id of the owning
BatchJobInstance |
long |
getElapsedTimeInMillis()
How many milliseconds the
BatchJobInstance has been in executing state. |
long |
getFailedRecords()
How many records were processed and failed in at least one step
|
Exception |
getInputPhaseException()
If the input phase failed, this method returns an exception info object
|
long |
getLoadedRecords()
How many records were loaded so far.
|
Exception |
getLoadingPhaseException()
If the loading phase failed, this method returns an exception info object
|
Exception |
getOnCompletePhaseException()
If the on complete phase failed, this method returns an exception info object
|
long |
getProcessedRecords()
How many records already went through all steps so far.
|
BatchStepResult |
getResultForStep(String stepId)
Retrieves information about the execution of a particular step
|
long |
getSuccessfulRecords()
How many records were processed through all the steps without failing any of them
|
long |
getTotalRecords()
Total number of records in the batch
|
boolean |
isFailedOnCompletePhase()
Wether an exeption was found on the on complete phase
|
boolean |
isFailedOnInputPhase()
Wether an exeption was found on the on input phase
|
boolean |
isFailedOnLoadingPhase()
Wether an exeption was found on the on loading phase
|
public ImmutableBatchJobResult(BatchJobResult jobResult)
public BatchStepResult getResultForStep(String stepId)
BatchJobResultgetResultForStep in interface BatchJobResultstepId - the id of a step in the owning BatchJobBatchStepResultpublic long getElapsedTimeInMillis()
BatchJobResultBatchJobInstance has been in executing state. If the job is stopped and then resumed, this
method is smart enough to filter the intervalgetElapsedTimeInMillis in interface BatchJobResultpublic long getSuccessfulRecords()
BatchJobResultgetSuccessfulRecords in interface BatchJobResultpublic long getFailedRecords()
BatchJobResultgetFailedRecords in interface BatchJobResultpublic long getTotalRecords()
BatchJobResultgetTotalRecords in interface BatchJobResultpublic long getLoadedRecords()
BatchJobResultBatchJobResult.getTotalRecords()getLoadedRecords in interface BatchJobResultpublic long getProcessedRecords()
BatchJobResultBatchJobResult.getTotalRecords()getProcessedRecords in interface BatchJobResultpublic String getBatchJobInstanceId()
BatchJobResultBatchJobInstancegetBatchJobInstanceId in interface BatchJobResultStringpublic boolean isFailedOnInputPhase()
BatchJobResultisFailedOnInputPhase in interface BatchJobResultpublic Exception getInputPhaseException()
BatchJobResultgetInputPhaseException in interface BatchJobResultExceptionpublic boolean isFailedOnLoadingPhase()
BatchJobResultisFailedOnLoadingPhase in interface BatchJobResultpublic Exception getLoadingPhaseException()
BatchJobResultgetLoadingPhaseException in interface BatchJobResultExceptionpublic boolean isFailedOnCompletePhase()
BatchJobResultisFailedOnCompletePhase in interface BatchJobResultpublic Exception getOnCompletePhaseException()
BatchJobResultgetOnCompletePhaseException in interface BatchJobResultExceptionCopyright © 2006–2019 MuleSoft, Inc.. All rights reserved.