Package org.springframework.batch.core.job

Examples of org.springframework.batch.core.job.SimpleStepHandler


   */
  @Override
  protected void doExecute(StepExecution stepExecution) throws Exception {
    try {
      stepExecution.getExecutionContext().put(STEP_TYPE_KEY, this.getClass().getName());
      StepHandler stepHandler = new SimpleStepHandler(getJobRepository(), stepExecution.getExecutionContext());
      FlowExecutor executor = new JobFlowExecutor(getJobRepository(), stepHandler, stepExecution.getJobExecution());
      executor.updateJobExecutionStatus(flow.start(executor).getStatus());
      stepExecution.upgradeStatus(executor.getJobExecution().getStatus());
      stepExecution.setExitStatus(executor.getJobExecution().getExitStatus());
    }
View Full Code Here


   */
  @Override
  protected void doExecute(final JobExecution execution) throws JobExecutionException {
    try {
      JobFlowExecutor executor = new JobFlowExecutor(getJobRepository(),
          new SimpleStepHandler(getJobRepository()), execution);
      executor.updateJobExecutionStatus(flow.start(executor).getStatus());
    }
    catch (FlowExecutionException e) {
      if (e.getCause() instanceof JobExecutionException) {
        throw (JobExecutionException) e.getCause();
View Full Code Here

    builder.start(new StepSupport("step") {
      @Override
      public void execute(StepExecution stepExecution) throws JobInterruptedException,
          UnexpectedJobExecutionException {
      }
    }).end().start(new JobFlowExecutor(jobRepository, new SimpleStepHandler(jobRepository), execution));
  }
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.job.SimpleStepHandler

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.