Package javax.batch.operations

Examples of javax.batch.operations.NoSuchJobException


  public List<Long> getRunningExecutions(String name)
      throws NoSuchJobException, JobSecurityException {
    Set<org.springframework.batch.core.JobExecution> findRunningJobExecutions = jobExplorer.findRunningJobExecutions(name);

    if(findRunningJobExecutions.isEmpty()) {
      throw new NoSuchJobException("Job name: " + name + " not found.");
    }

    List<Long> results = new ArrayList<Long>(findRunningJobExecutions.size());

    for (org.springframework.batch.core.JobExecution jobExecution : findRunningJobExecutions) {
View Full Code Here


  public List<StepExecution> getStepExecutions(long executionId)
      throws NoSuchJobExecutionException, JobSecurityException {
    org.springframework.batch.core.JobExecution execution = jobExplorer.getJobExecution(executionId);

    if(execution == null) {
      throw new NoSuchJobException("JobExecution with the id " + executionId + " was not found");
    }

    Collection<org.springframework.batch.core.StepExecution> executions = execution.getStepExecutions();

    List<StepExecution> batchExecutions = new ArrayList<StepExecution>();
View Full Code Here

TOP

Related Classes of javax.batch.operations.NoSuchJobException

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.