public Master getAnyCiMaster(String deploymentName, String masterName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).withAnyCi().setMaster(masterName); return getMaster(filter, masterName); }
public ProblemSet validateAllCis(String deploymentName) { NodeFilter filter = new NodeFilter() .setDeployment(deploymentName) .withAnyCi() .withAnyAccount(); return validateService.validateMatchingFilter(filter); } }
public ProblemSet validateAllCis(String deploymentName) { NodeFilter filter = new NodeFilter() .setDeployment(deploymentName) .withAnyCi() .withAnyAccount(); return validateService.validateMatchingFilter(filter); } }
public Master getAnyCiMaster(String deploymentName, String masterName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).withAnyCi().setMaster(masterName); return getMaster(filter, masterName); }
public List<Ci> getAllCis(String deploymentName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).withAnyCi(); List<Ci> matching = lookupService.getMatchingNodesOfType(filter, Ci.class); if (matching.size() == 0) { throw new ConfigNotFoundException( new ConfigProblemBuilder(Severity.FATAL, "No cis could be found") .build()); } else { return matching; } }
public List<Ci> getAllCis(String deploymentName) { NodeFilter filter = new NodeFilter().setDeployment(deploymentName).withAnyCi(); List<Ci> matching = lookupService.getMatchingNodesOfType(filter, Ci.class); if (matching.size() == 0) { throw new ConfigNotFoundException( new ConfigProblemBuilder(Severity.FATAL, "No cis could be found") .build()); } else { return matching; } }