Examples of upgradeStatus()


Examples of org.springframework.batch.core.JobExecution.upgradeStatus()

      throw new JobExecutionAlreadyRunningException(
          "JobExecution is running or complete and therefore cannot be aborted");
    }

    logger.info("Aborting job execution: " + jobExecution);
    jobExecution.upgradeStatus(BatchStatus.ABANDONED);
    jobExecution.setEndTime(new Date());
    jobRepository.update(jobExecution);
    return jobExecution;

  }
View Full Code Here

Examples of org.springframework.batch.core.JobExecution.upgradeStatus()

      throw new JobExecutionAlreadyRunningException(
          "JobExecution is running or complete and therefore cannot be aborted");
    }

    logger.info("Aborting job execution: " + jobExecution);
    jobExecution.upgradeStatus(BatchStatus.ABANDONED);
    jobExecution.setEndTime(new Date());
    jobRepository.update(jobExecution);

    return jobExecution;
  }
View Full Code Here

Examples of org.springframework.batch.core.StepExecution.upgradeStatus()

  @Override
  public void abandonStepExecution() {
    StepExecution lastStepExecution = stepExecutionHolder.get();
    if (lastStepExecution != null && lastStepExecution.getStatus().isGreaterThan(BatchStatus.STOPPING)) {
      lastStepExecution.upgradeStatus(BatchStatus.ABANDONED);
      jobRepository.update(lastStepExecution);
    }
  }

  @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.