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 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; } }