public class ComposedTaskStepExecutionListener
extends org.springframework.batch.core.listener.StepExecutionListenerSupport
| Constructor and Description |
|---|
ComposedTaskStepExecutionListener(TaskExplorerContainer taskExplorerContainer) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.batch.core.ExitStatus |
afterStep(org.springframework.batch.core.StepExecution stepExecution)
If endTime for task is null then the ExitStatus will be set to UNKNOWN.
|
void |
beforeStep(org.springframework.batch.core.StepExecution stepExecution) |
public ComposedTaskStepExecutionListener(TaskExplorerContainer taskExplorerContainer)
public org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
TaskLauncherTasklet.IGNORE_EXIT_MESSAGE_PROPERTY is set to true as a task property
and the task returns an exitCode != to zero an exit status of FAILED is
returned. If no exit message is set or
TaskLauncherTasklet.IGNORE_EXIT_MESSAGE_PROPERTY is set to true as a task property
and the exit code of the task is zero then the ExitStatus of COMPLETED is returned.afterStep in interface org.springframework.batch.core.StepExecutionListenerafterStep in class org.springframework.batch.core.listener.StepExecutionListenerSupportstepExecution - The stepExecution that kicked of the Task.public void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
beforeStep in interface org.springframework.batch.core.StepExecutionListenerbeforeStep in class org.springframework.batch.core.listener.StepExecutionListenerSupportCopyright © 2024 Pivotal Software, Inc.. All rights reserved.