Examples of BatchJobAlreadyExistsException


Examples of org.springframework.xd.dirt.job.BatchJobAlreadyExistsException

  @ResponseBody
  public JobDefinitionResource save(@RequestParam("name") String name, @RequestParam("definition") String definition,
      @RequestParam(value = "deploy", defaultValue = "true") boolean deploy) {
    // Verify if the batch job repository already has the job with the same name.
    if (distributedJobLocator.getJobNames().contains(name)) {
      throw new BatchJobAlreadyExistsException(name);
    }
    return super.save(name, definition, deploy);
  }
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.