Class StepExecutionRequestHandler
- java.lang.Object
- org.springframework.batch.integration.partition.StepExecutionRequestHandler
@MessageEndpoint public class StepExecutionRequestHandler extends java.lang.Object
AMessageEndpoint
that can handle aStepExecutionRequest
and return aStepExecution
as 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 StepExecution
handle(StepExecutionRequest request)
void
setJobExplorer(JobExplorer jobExplorer)
An explorer that should be used to check forStepExecution
completion.void
setStepLocator(StepLocator stepLocator)
Used to locate aStep
to execute for each request.
Method Detail
setStepLocator
public void setStepLocator(StepLocator stepLocator)
Used to locate aStep
to execute for each request.- Parameters:
stepLocator
- aStepLocator
setJobExplorer
public void setJobExplorer(JobExplorer jobExplorer)
An explorer that should be used to check forStepExecution
completion.- Parameters:
jobExplorer
- aJobExplorer
that is linked to the shared repository used by all remote workers.
handle
@ServiceActivator public StepExecution handle(StepExecutionRequest request)