Class StepExecutionRequestHandler
java.lang.Object
org.springframework.batch.integration.partition.StepExecutionRequestHandler
A
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.- Author:
- Dave Syer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.batch.core.step.StepExecutionhandle(StepExecutionRequest request) voidsetJobRepository(org.springframework.batch.core.repository.JobRepository jobRepository) A job repository that should be used to check forStepExecutioncompletion.voidsetStepLocator(org.springframework.batch.core.step.StepLocator stepLocator) Used to locate aStepto execute for each request.
-
Constructor Details
-
StepExecutionRequestHandler
public StepExecutionRequestHandler()
-
-
Method Details
-
setStepLocator
public void setStepLocator(org.springframework.batch.core.step.StepLocator stepLocator) Used to locate aStepto execute for each request.- Parameters:
stepLocator- aStepLocator
-
setJobRepository
public void setJobRepository(org.springframework.batch.core.repository.JobRepository jobRepository) A job repository that should be used to check forStepExecutioncompletion.- Parameters:
jobRepository- aJobRepositorythat is linked to the shared repository used by all remote workers.
-
handle
@ServiceActivator public org.springframework.batch.core.step.StepExecution handle(StepExecutionRequest request)
-