类 StepExecutionRequestHandler
- java.lang.Object
- org.springframework.batch.integration.partition.StepExecutionRequestHandler
@MessageEndpoint public class StepExecutionRequestHandler extends java.lang.Object
AMessageEndpointthat can handle aStepExecutionRequestand return aStepExecutionas the result. Typically these need to be aggregated into a response to a partition handler.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 StepExecutionRequestHandler()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.
构造器详细资料
StepExecutionRequestHandler
public StepExecutionRequestHandler()
方法详细资料
setStepLocator
public void setStepLocator(StepLocator stepLocator)
Used to locate aStepto execute for each request.- 参数:
stepLocator- aStepLocator
setJobExplorer
public void setJobExplorer(JobExplorer jobExplorer)
An explorer that should be used to check forStepExecutioncompletion.- 参数:
jobExplorer- aJobExplorerthat is linked to the shared repository used by all remote workers.
handle
@ServiceActivator public StepExecution handle(StepExecutionRequest request)