use of com.yahoo.vespa.model.generic.builder.DomServiceClusterBuilder in project vespa by vespa-engine.
the class VespaDomBuilder method getClusters.
@Override
public List<ServiceCluster> getClusters(ApplicationPackage pkg, AbstractConfigProducer parent) {
List<ServiceCluster> clusters = new ArrayList<>();
Document services = XmlHelper.getDocument(pkg.getServices());
for (Element clusterSpec : XML.getChildren(services.getDocumentElement(), "cluster")) {
DomServiceClusterBuilder clusterBuilder = new DomServiceClusterBuilder(clusterSpec.getAttribute("name"));
clusters.add(clusterBuilder.build(parent.getRoot(), clusterSpec));
}
return clusters;
}
Aggregations