@Override protected Step createPartitionStep() { // Creating a partitioned step for the JSR needs to create two steps...the partitioned step and the step being executed. Step executedStep = null; if (hasChunkElement()) { Assert.isTrue(!hasTasklet(), "Step [" + getName() + "] has both a <chunk/> element and a 'ref' attribute referencing a Tasklet."); validateFaultTolerantSettings(); if (isFaultTolerant()) { executedStep = createFaultTolerantStep(); } else { executedStep = createSimpleStep(); } } else if (hasTasklet()) { executedStep = createTaskletStep(); } ((JsrPartitionHandler) super.getPartitionHandler()).setStep(executedStep); JsrPartitionStepBuilder builder = new JsrSimpleStepBuilder<I, O>(new StepBuilder(executedStep.getName())).partitioner(executedStep); enhanceCommonStep(builder); if (getPartitionHandler() != null) { builder.partitionHandler(getPartitionHandler()); } if(reducer != null) { builder.reducer(reducer); } builder.aggregator(getStepExecutionAggergator()); return builder.build(); }
@Override protected Step createPartitionStep() { // Creating a partitioned step for the JSR needs to create two steps...the partitioned step and the step being executed. Step executedStep = null; if (hasChunkElement()) { Assert.isTrue(!hasTasklet(), "Step [" + getName() + "] has both a <chunk/> element and a 'ref' attribute referencing a Tasklet."); validateFaultTolerantSettings(); if (isFaultTolerant()) { executedStep = createFaultTolerantStep(); } else { executedStep = createSimpleStep(); } } else if (hasTasklet()) { executedStep = createTaskletStep(); } ((JsrPartitionHandler) super.getPartitionHandler()).setStep(executedStep); JsrPartitionStepBuilder builder = new JsrSimpleStepBuilder<I, O>(new StepBuilder(executedStep.getName())).partitioner(executedStep); enhanceCommonStep(builder); if (getPartitionHandler() != null) { builder.partitionHandler(getPartitionHandler()); } if(reducer != null) { builder.reducer(reducer); } builder.aggregator(getStepExecutionAggergator()); return builder.build(); }
@Override protected Step createPartitionStep() { // Creating a partitioned step for the JSR needs to create two steps...the partitioned step and the step being executed. Step executedStep = null; if (hasChunkElement()) { Assert.isTrue(!hasTasklet(), "Step [" + getName() + "] has both a <chunk/> element and a 'ref' attribute referencing a Tasklet."); validateFaultTolerantSettings(); if (isFaultTolerant()) { executedStep = createFaultTolerantStep(); } else { executedStep = createSimpleStep(); } } else if (hasTasklet()) { executedStep = createTaskletStep(); } ((JsrPartitionHandler) super.getPartitionHandler()).setStep(executedStep); JsrPartitionStepBuilder builder = new JsrSimpleStepBuilder<I, O>(new StepBuilder(executedStep.getName())).partitioner(executedStep); enhanceCommonStep(builder); if (getPartitionHandler() != null) { builder.partitionHandler(getPartitionHandler()); } if(reducer != null) { builder.reducer(reducer); } builder.aggregator(getStepExecutionAggergator()); return builder.build(); }
@Override protected Step createPartitionStep() { // Creating a partitioned step for the JSR needs to create two steps...the partitioned step and the step being executed. Step executedStep = null; if (hasChunkElement()) { Assert.isTrue(!hasTasklet(), "Step [" + getName() + "] has both a <chunk/> element and a 'ref' attribute referencing a Tasklet."); validateFaultTolerantSettings(); if (isFaultTolerant()) { executedStep = createFaultTolerantStep(); } else { executedStep = createSimpleStep(); } } else if (hasTasklet()) { executedStep = createTaskletStep(); } ((JsrPartitionHandler) super.getPartitionHandler()).setStep(executedStep); JsrPartitionStepBuilder builder = new JsrSimpleStepBuilder<I, O>(new StepBuilder(executedStep.getName())).partitioner(executedStep); enhanceCommonStep(builder); if (getPartitionHandler() != null) { builder.partitionHandler(getPartitionHandler()); } if(reducer != null) { builder.reducer(reducer); } builder.aggregator(getStepExecutionAggergator()); return builder.build(); }