org.springframework.batch.integration.partition
Class StepExecutionRequestHandler
java.lang.Object
org.springframework.batch.integration.partition.StepExecutionRequestHandler
@MessageEndpoint
public class StepExecutionRequestHandler
- extends java.lang.Object
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
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StepExecutionRequestHandler
public StepExecutionRequestHandler()
setStepLocator
public void setStepLocator(org.springframework.batch.core.step.StepLocator stepLocator)
- Used to locate a
Step to execute for each request.
- Parameters:
stepLocator - a StepLocator
setJobExplorer
public void setJobExplorer(org.springframework.batch.core.explore.JobExplorer jobExplorer)
- An explorer that should be used to check for
StepExecution
completion.
- Parameters:
jobExplorer - a JobExplorer that is linked to the shared
repository used by all remote workers.
handle
@ServiceActivator
public org.springframework.batch.core.StepExecution handle(StepExecutionRequest request)
Copyright © 2009. All Rights Reserved.