Examples of JobExecutionNotStoppedException


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
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.