类 JsrStepExecutionSplitter
- java.lang.Object
- org.springframework.batch.core.partition.support.SimpleStepExecutionSplitter
- org.springframework.batch.core.jsr.partition.JsrStepExecutionSplitter
- 所有已实现的接口:
StepExecutionSplitter
,org.springframework.beans.factory.InitializingBean
public class JsrStepExecutionSplitter extends SimpleStepExecutionSplitter
Provides JSR-352 specific behavior for the splitting ofStepExecution
s.- 从以下版本开始:
- 3.0
- 作者:
- Michael Minella
构造器概要
构造器 构造器 说明 JsrStepExecutionSplitter(JobRepository jobRepository, boolean allowStartIfComplete, java.lang.String stepName, boolean restoreState)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.String
getStepName()
The name of the step configuration that will be executed remotely.java.util.Set<StepExecution>
split(StepExecution stepExecution, int gridSize)
Returns the same number ofStepExecution
s as the gridSize specifies.从类继承的方法 org.springframework.batch.core.partition.support.SimpleStepExecutionSplitter
afterPropertiesSet, getStartable, isStartable, setAllowStartIfComplete, setJobRepository, setPartitioner, setStepName
构造器详细资料
JsrStepExecutionSplitter
public JsrStepExecutionSplitter(JobRepository jobRepository, boolean allowStartIfComplete, java.lang.String stepName, boolean restoreState)
方法详细资料
getStepName
public java.lang.String getStepName()
从接口复制的说明:StepExecutionSplitter
The name of the step configuration that will be executed remotely. Remote workers are going to execute a the same step for each execution context in the partition.- 指定者:
getStepName
在接口中StepExecutionSplitter
- 覆盖:
getStepName
在类中SimpleStepExecutionSplitter
- 返回:
- the name of the step that will execute the business logic
- 另请参阅:
StepExecutionSplitter.getStepName()
split
public java.util.Set<StepExecution> split(StepExecution stepExecution, int gridSize) throws JobExecutionException
Returns the same number ofStepExecution
s as the gridSize specifies. Each of the child StepExecutions will not be available via theJsrJobOperator
per JSR-352.- 指定者:
split
在接口中StepExecutionSplitter
- 覆盖:
split
在类中SimpleStepExecutionSplitter
- 参数:
stepExecution
- theStepExecution
to be partitioned.gridSize
- a hint for the splitter if the size of the grid is known- 返回:
- a set of
StepExecution
instances for remote processing - 抛出:
JobExecutionException
- if the split cannot be made- 另请参阅:
- https://java.net/projects/jbatch/lists/public/archive/2013-10/message/10