Package org.springframework.batch.core.launch

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


      }

      if (opts.contains("-abandon")) {
        List<JobExecution> jobExecutions = getStoppedJobExecutions(jobIdentifier);
        if (jobExecutions == null) {
          throw new JobExecutionNotStoppedException("No stopped execution found for job=" + jobIdentifier);
        }
        for (JobExecution jobExecution : jobExecutions) {
          jobExecution.setStatus(BatchStatus.ABANDONED);
          jobRepository.update(jobExecution);
        }
View Full Code Here

TOP

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

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.