Package org.springframework.batch.core.step.builder

Examples of org.springframework.batch.core.step.builder.PartitionStepBuilder


    }
  }

  protected Step createPartitionStep() {

    PartitionStepBuilder builder;
    if (partitioner != null) {
      builder = new StepBuilder(name).partitioner(step != null ? step.getName() : name, partitioner).step(step);
    }
    else {
      builder = new StepBuilder(name).partitioner(step);
    }
    enhanceCommonStep(builder);

    if (partitionHandler != null) {
      builder.partitionHandler(partitionHandler);
    }
    else {
      builder.gridSize(gridSize);
      builder.taskExecutor(taskExecutor);
    }

    builder.aggregator(stepExecutionAggregator);

    return builder.build();

  }
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.step.builder.PartitionStepBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.