Package org.springframework.batch.core.launch

Examples of org.springframework.batch.core.launch.JobExecutionNotFailedException


      JobExecution jobExecution = getLastFailedJobExecution(jobIdentifier);
      if (log.isDebugEnabled()) {
        log.info("Last failed JobExecution: " + jobExecution);
      }
      if (jobExecution == null && jobProperties.isFailRestart()) {
        throw new JobExecutionNotFailedException("No failed or stopped execution found for job="
            + jobIdentifier);
      } else {
        log.info("No failed or stopped execution found for job=" + jobIdentifier
            + ", batch properties flag for failRestart=" + jobProperties.isFailRestart()
            + " so we don't fail restart.");
View Full Code Here


      }

      if (opts.contains("-restart")) {
        JobExecution jobExecution = getLastFailedJobExecution(jobIdentifier);
        if (jobExecution == null) {
          throw new JobExecutionNotFailedException("No failed or stopped execution found for job="
              + jobIdentifier);
        }
        jobParameters = jobExecution.getJobParameters();
        jobName = jobExecution.getJobInstance().getJobName();
      }
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.launch.JobExecutionNotFailedException

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.