@MessageEndpoint public class StepExecutionRequestHandler extends Object
MessageEndpoint
that can handle a StepExecutionRequest
and
return a StepExecution
as the result. Typically these need to be
aggregated into a response to a partition handler.Constructor and Description |
---|
StepExecutionRequestHandler() |
Modifier and Type | Method and Description |
---|---|
org.springframework.batch.core.StepExecution |
handle(StepExecutionRequest request) |
void |
setJobExplorer(org.springframework.batch.core.explore.JobExplorer jobExplorer)
An explorer that should be used to check for
StepExecution
completion. |
void |
setStepLocator(org.springframework.batch.core.step.StepLocator stepLocator)
Used to locate a
Step to execute for each request. |
public void setStepLocator(org.springframework.batch.core.step.StepLocator stepLocator)
Step
to execute for each request.stepLocator
- a StepLocator
public void setJobExplorer(org.springframework.batch.core.explore.JobExplorer jobExplorer)
StepExecution
completion.jobExplorer
- a JobExplorer
that is linked to the shared
repository used by all remote workers.@ServiceActivator public org.springframework.batch.core.StepExecution handle(StepExecutionRequest request)
Copyright © 2015. All rights reserved.