Class StepExecutionRequestHandler
- java.lang.Object
- org.springframework.batch.integration.partition.StepExecutionRequestHandler
@MessageEndpoint public class StepExecutionRequestHandler extends java.lang.ObjectAMessageEndpointthat can handle aStepExecutionRequestand return aStepExecutionas the result. Typically these need to be aggregated into a response to a partition handler.- Author:
- Dave Syer
Constructor Summary
Constructors Constructor Description StepExecutionRequestHandler()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StepExecutionhandle(StepExecutionRequest request)voidsetJobExplorer(JobExplorer jobExplorer)An explorer that should be used to check forStepExecutioncompletion.voidsetStepLocator(StepLocator stepLocator)Used to locate aStepto execute for each request.
Method Detail
setStepLocator
public void setStepLocator(StepLocator stepLocator)
Used to locate aStepto execute for each request.- Parameters:
stepLocator- aStepLocator
setJobExplorer
public void setJobExplorer(JobExplorer jobExplorer)
An explorer that should be used to check forStepExecutioncompletion.- Parameters:
jobExplorer- aJobExplorerthat is linked to the shared repository used by all remote workers.
handle
@ServiceActivator public StepExecution handle(StepExecutionRequest request)