public class EventEmittingStepExecutionListener extends Object implements org.springframework.batch.core.StepExecutionListener
StepExecutionEvent
at the start and end of each step indicating the
step's status. The StepExecutionListener.afterStep(StepExecution)
returns the
ExitStatus
of the inputted StepExecution
.Constructor and Description |
---|
EventEmittingStepExecutionListener(org.springframework.messaging.MessageChannel output) |
Modifier and Type | Method and Description |
---|---|
org.springframework.batch.core.ExitStatus |
afterStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
beforeStep(org.springframework.batch.core.StepExecution stepExecution) |
public EventEmittingStepExecutionListener(org.springframework.messaging.MessageChannel output)
public void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
beforeStep
in interface org.springframework.batch.core.StepExecutionListener
public org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
afterStep
in interface org.springframework.batch.core.StepExecutionListener
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.