Search in sources :

Example 1 with Service

use of com.yahoo.vespa.model.generic.service.Service in project vespa by vespa-engine.

the class DomServiceBuilder method doBuild.

@Override
protected com.yahoo.vespa.model.generic.service.Service doBuild(AbstractConfigProducer parent, Element serviceSpec) {
    ServiceCluster sc = (ServiceCluster) parent;
    com.yahoo.vespa.model.generic.service.Service service = new com.yahoo.vespa.model.generic.service.Service(sc, i + "");
    for (Element subServiceSpec : XML.getChildren(serviceSpec, "module")) {
        new DomModuleBuilder(subServiceSpec.getAttribute("name")).build(service, subServiceSpec);
    }
    return service;
}
Also used : Service(com.yahoo.vespa.model.generic.service.Service) ServiceCluster(com.yahoo.vespa.model.generic.service.ServiceCluster) Element(org.w3c.dom.Element) Service(com.yahoo.vespa.model.generic.service.Service)

Aggregations

Service (com.yahoo.vespa.model.generic.service.Service)1 ServiceCluster (com.yahoo.vespa.model.generic.service.ServiceCluster)1 Element (org.w3c.dom.Element)1