Example usage for Java org.springframework.batch.core JobExecution fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addFailureException(Throwable t) Add the provided throwable to the failure exception list. |
void | addStepExecutions(List Add some step executions. |
StepExecution | createStepExecution(String stepName) Register a step execution with the current job execution. |
List | getAllFailureExceptions() Return all failure causing exceptions for this JobExecution, including step executions. |
Date | getCreateTime() |
Date | getEndTime() |
ExecutionContext | getExecutionContext() Returns the ExecutionContext for this execution. |
ExitStatus | getExitStatus() |
List | getFailureExceptions() |
Long | getId() |
String | getJobConfigurationName() |
Long | getJobId() Convenience getter for for the id of the enclosing job. |
JobInstance | getJobInstance() |
JobParameters | getJobParameters() |
Date | getLastUpdated() Get the date representing the last time this JobExecution was updated in the JobRepository. |
Date | getStartTime() |
BatchStatus | getStatus() |
Collection | getStepExecutions() Accessor for the step executions. |
Integer | getVersion() |
void | incrementVersion() Increment the version number |
boolean | isRunning() Test if this JobExecution indicates that it is running. |
boolean | isStopping() Test if this JobExecution indicates that it has been signalled to stop. |
void | setCreateTime(Date createTime) |
void | setEndTime(Date endTime) |
void | setExecutionContext(ExecutionContext executionContext) Sets the ExecutionContext for this execution |
void | setExitStatus(ExitStatus exitStatus) |
void | setId(Long id) |
void | setJobInstance(JobInstance jobInstance) |
void | setLastUpdated(Date lastUpdated) Set the last time this JobExecution was updated. |
void | setStartTime(Date startTime) |
void | setStatus(BatchStatus status) Set the value of the status field. |
void | setVersion(Integer version) Public setter for the version needed only by repository methods. |
void | stop() Signal the JobExecution to stop. |
String | toString() |
void | upgradeStatus(BatchStatus status) Upgrade the status field if the provided value is greater than the existing one. |