Package org.springframework.xd.dirt.job

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

Related Classes of org.springframework.xd.dirt.job.BatchJobAlreadyExistsException

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.