Search in sources :

Example 1 with ContainerModelBuilder

use of com.yahoo.vespa.model.container.xml.ContainerModelBuilder in project vespa by vespa-engine.

the class StandaloneDocprocContainerTest method setupCluster.

public ContainerCluster setupCluster(boolean standalone) {
    ContainerModelBuilder builder = new ContainerModelBuilder(standalone, Networking.disable);
    ContainerModel model = builder.build(DeployState.createTestState(), null, root, servicesXml());
    if (!standalone)
        model.getCluster().getDocproc().getChains().addServersAndClientsForChains();
    root.freezeModelTopology();
    return model.getCluster();
}
Also used : ContainerModelBuilder(com.yahoo.vespa.model.container.xml.ContainerModelBuilder) ContainerModel(com.yahoo.vespa.model.container.ContainerModel)

Example 2 with ContainerModelBuilder

use of com.yahoo.vespa.model.container.xml.ContainerModelBuilder in project vespa by vespa-engine.

the class FilterBindingsTest method buildContainerCluster.

private void buildContainerCluster(Element containerElem) throws SAXException, IOException {
    ContainerModel model = new ContainerModelBuilder(true, Networking.enable).build(DeployState.createTestState(), null, root, containerElem);
    root.freezeModelTopology();
}
Also used : ContainerModelBuilder(com.yahoo.vespa.model.container.xml.ContainerModelBuilder) ContainerModel(com.yahoo.vespa.model.container.ContainerModel)

Aggregations

ContainerModel (com.yahoo.vespa.model.container.ContainerModel)2 ContainerModelBuilder (com.yahoo.vespa.model.container.xml.ContainerModelBuilder)2