Search in sources :

Example 6 with ContainerModel

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

the class DocprocBuilderTest method setupCluster.

@Before
public void setupCluster() {
    ContainerModel model = new ContainerModelBuilder(false, Networking.disable).build(DeployState.createTestState(), null, root, servicesXml());
    cluster = model.getCluster();
    cluster.getDocproc().getChains().addServersAndClientsForChains();
    root.freezeModelTopology();
    containerMbusConfig = root.getConfig(ContainerMbusConfig.class, cluster.getContainers().get(0).getConfigId());
    componentsConfig = root.getConfig(ComponentsConfig.class, cluster.getConfigId());
    chainsConfig = root.getConfig(ChainsConfig.class, cluster.getConfigId() + "/component/com.yahoo.docproc.jdisc.DocumentProcessingHandler");
    documentmanagerConfig = root.getConfig(DocumentmanagerConfig.class, cluster.getConfigId());
    bundlesConfig = root.getConfig(BundlesConfig.class, cluster.getConfigId());
    schemamappingConfig = root.getConfig(SchemamappingConfig.class, cluster.getContainers().get(0).getConfigId());
    qrStartConfig = root.getConfig(QrStartConfig.class, cluster.getConfigId());
    docprocConfig = root.getConfig(DocprocConfig.class, cluster.getConfigId());
}
Also used : ComponentsConfig(com.yahoo.container.ComponentsConfig) BundlesConfig(com.yahoo.container.BundlesConfig) DocprocConfig(com.yahoo.config.docproc.DocprocConfig) SchemamappingConfig(com.yahoo.config.docproc.SchemamappingConfig) DocumentmanagerConfig(com.yahoo.document.config.DocumentmanagerConfig) ChainsConfig(com.yahoo.container.core.ChainsConfig) QrStartConfig(com.yahoo.search.config.QrStartConfig) ContainerMbusConfig(com.yahoo.container.jdisc.ContainerMbusConfig) ContainerModel(com.yahoo.vespa.model.container.ContainerModel) Before(org.junit.Before)

Example 7 with ContainerModel

use of com.yahoo.vespa.model.container.ContainerModel 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)7 ContainerCluster (com.yahoo.vespa.model.container.ContainerCluster)3 ContainerModelBuilder (com.yahoo.vespa.model.container.xml.ContainerModelBuilder)2 DeploymentSpec (com.yahoo.config.application.api.DeploymentSpec)1 DocprocConfig (com.yahoo.config.docproc.DocprocConfig)1 SchemamappingConfig (com.yahoo.config.docproc.SchemamappingConfig)1 ConfigModel (com.yahoo.config.model.ConfigModel)1 DeployState (com.yahoo.config.model.deploy.DeployState)1 BundlesConfig (com.yahoo.container.BundlesConfig)1 ComponentsConfig (com.yahoo.container.ComponentsConfig)1 ChainsConfig (com.yahoo.container.core.ChainsConfig)1 ContainerMbusConfig (com.yahoo.container.jdisc.ContainerMbusConfig)1 DocumentmanagerConfig (com.yahoo.document.config.DocumentmanagerConfig)1 QrStartConfig (com.yahoo.search.config.QrStartConfig)1 HostResource (com.yahoo.vespa.model.HostResource)1 VespaModel (com.yahoo.vespa.model.VespaModel)1 IndexedSearchCluster (com.yahoo.vespa.model.search.IndexedSearchCluster)1 Reader (java.io.Reader)1 ArrayList (java.util.ArrayList)1 Optional (java.util.Optional)1