public Master getCiMaster(String deploymentName, String ciName, String masterName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setCi(ciName).setMaster(masterName); return getMaster(filter, masterName); }
public ProblemSet validateCi(String deploymentName, String ciName) { NodeFilter filter = new NodeFilter() .setDeployment(deploymentName) .setCi(ciName) .withAnyAccount(); return validateService.validateMatchingFilter(filter); }
public ProblemSet validateCi(String deploymentName, String ciName) { NodeFilter filter = new NodeFilter() .setDeployment(deploymentName) .setCi(ciName) .withAnyAccount(); return validateService.validateMatchingFilter(filter); }
public ProblemSet validateAllMasters(String deploymentName, String ciName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setCi(ciName).withAnyMaster(); return validateService.validateMatchingFilter(filter); } }
public ProblemSet validateAllMasters(String deploymentName, String ciName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setCi(ciName).withAnyMaster(); return validateService.validateMatchingFilter(filter); } }
public ProblemSet validateMaster(String deploymentName, String ciName, String masterName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setCi(ciName).setMaster(masterName); return validateService.validateMatchingFilter(filter); }
public Master getCiMaster(String deploymentName, String ciName, String masterName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setCi(ciName).setMaster(masterName); return getMaster(filter, masterName); }
public ProblemSet validateMaster(String deploymentName, String ciName, String masterName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setCi(ciName).setMaster(masterName); return validateService.validateMatchingFilter(filter); }
public List<Master> getAllMasters(String deploymentName, String ciName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setCi(ciName).withAnyMaster(); List<Master> matchingMasters = lookupService.getMatchingNodesOfType(filter, Master.class); if (matchingMasters.size() == 0) { throw new ConfigNotFoundException( new ConfigProblemBuilder(Severity.FATAL, "No masters could be found").build()); } else { return matchingMasters; } }
public List<Master> getAllMasters(String deploymentName, String ciName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setCi(ciName).withAnyMaster(); List<Master> matchingMasters = lookupService.getMatchingNodesOfType(filter, Master.class); if (matchingMasters.size() == 0) { throw new ConfigNotFoundException( new ConfigProblemBuilder(Severity.FATAL, "No masters could be found").build()); } else { return matchingMasters; } }
public Ci getCi(String deploymentName, String ciName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setCi(ciName); List<Ci> matching = lookupService.getMatchingNodesOfType(filter, Ci.class); switch (matching.size()) { case 0: throw new ConfigNotFoundException(new ConfigProblemBuilder(Severity.FATAL, "No Continuous Integration service with name \"" + ciName + "\" could be found").build()); case 1: return matching.get(0); default: throw new IllegalConfigException(new ConfigProblemBuilder(Severity.FATAL, "More than one CI with name \"" + ciName + "\" found").build()); } }
public Ci getCi(String deploymentName, String ciName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).setCi(ciName); List<Ci> matching = lookupService.getMatchingNodesOfType(filter, Ci.class); switch (matching.size()) { case 0: throw new ConfigNotFoundException(new ConfigProblemBuilder(Severity.FATAL, "No Continuous Integration service with name \"" + ciName + "\" could be found").build()); case 1: return matching.get(0); default: throw new IllegalConfigException(new ConfigProblemBuilder(Severity.FATAL, "More than one CI with name \"" + ciName + "\" found").build()); } }