public class JsrStepExecutionSplitter extends SimpleStepExecutionSplitter
StepExecution
s.Constructor and Description |
---|
JsrStepExecutionSplitter(JobRepository jobRepository,
boolean allowStartIfComplete,
java.lang.String stepName,
boolean restoreState) |
Modifier and Type | Method and Description |
---|---|
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 of
StepExecution s as the gridSize specifies. |
afterPropertiesSet, getStartable, setAllowStartIfComplete, setJobRepository, setPartitioner, setStepName
public JsrStepExecutionSplitter(JobRepository jobRepository, boolean allowStartIfComplete, java.lang.String stepName, boolean restoreState)
public java.lang.String getStepName()
StepExecutionSplitter
getStepName
in interface StepExecutionSplitter
getStepName
in class SimpleStepExecutionSplitter
StepExecutionSplitter.getStepName()
public java.util.Set<StepExecution> split(StepExecution stepExecution, int gridSize) throws JobExecutionException
StepExecution
s as the gridSize specifies. Each
of the child StepExecutions will not be available via the JsrJobOperator
per
JSR-352.split
in interface StepExecutionSplitter
split
in class SimpleStepExecutionSplitter
stepExecution
- the StepExecution
to be partitioned.gridSize
- a hint for the splitter if the size of the grid is knownStepExecution
instances for remote processingJobExecutionException
- if the split cannot be made