public class EventEmittingStepExecutionListener extends Object implements org.springframework.batch.core.StepExecutionListener, org.springframework.core.Ordered
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) |
EventEmittingStepExecutionListener(org.springframework.messaging.MessageChannel output,
int order) |
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) |
int |
getOrder() |
public EventEmittingStepExecutionListener(org.springframework.messaging.MessageChannel output)
public EventEmittingStepExecutionListener(org.springframework.messaging.MessageChannel output, int order)
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
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.