JobExecution && StepExecution Properties
Table 3.1. JobExecution Properties
status | A BatchStatus object that indicates the status of the execution. While running, it's BatchStatus.STARTED, if it fails, it's BatchStatus.FAILED, and if it finishes successfully, it's BatchStatus.COMPLETED |
startTime | A java.util.Date representing the current system time when the execution was started. |
endTime | A java.util.Date representing the current system time when the execution finished, regardless of whether or not it was successful. |
exitStatus | The ExitStatus indicating the result of the run. It is most important because it contains an exit code that will be returned to the caller. See chapter 5 for more details. |
createTime | A java.util.Date representing the current system time when the JobExecution was first persisted. The job may not have been started yet (and thus has no start time), but it will always have a createTime, which is required by the framework for managing job levelExecutionContext s. |
lastUpdated | A java.util.Date representing the last time a JobExecution was persisted. |
executionContext | The 'property bag' containing any user data that needs to be persisted between executions. |
failureExceptions | The list of exceptions encountered during the execution of a Job . These can be useful if more than one exception is encountered during the failure of aJob . |
Table 3.8. StepExecution Properties
status | A BatchStatus object that indicates the status of the execution. While it's running, the status is BatchStatus.STARTED, if it fails, the status is BatchStatus.FAILED, and if it finishes successfully, the status is BatchStatus.COMPLETED |
startTime | A java.util.Date representing the current system time when the execution was started. |
endTime | A java.util.Date representing the current system time when the execution finished, regardless of whether or not it was successful. |
exitStatus | The ExitStatus indicating the result of the execution. It is most important because it contains an exit code that will be returned to the caller. See chapter 5 for more details. |
executionContext | The 'property bag' containing any user data that needs to be persisted between executions. |
readCount | The number of items that have been successfully read |
writeCount | The number of items that have been successfully written |
commitCount | The number transactions that have been committed for this execution |
rollbackCount | The number of times the business transaction controlled by the Step has been rolled back. |
readSkipCount | The number of times read has failed, resulting in a skipped item. |
processSkipCount | The number of times process has failed, resulting in a skipped item. |
filterCount | The number of items that have been 'filtered' by theItemProcessor . |
writeSkipCount | The number of times write has failed, resulting in a skipped item. |
====END====