use of com.yahoo.vespa.model.container.component.Component in project vespa by vespa-engine.
the class DomComponentBuilder method doBuild.
protected Component doBuild(AbstractConfigProducer ancestor, Element spec) {
Component component = buildComponent(spec);
addChildren(ancestor, spec, component);
return component;
}
use of com.yahoo.vespa.model.container.component.Component in project vespa by vespa-engine.
the class DomFederationSearcherBuilder method doBuild.
protected FederationSearcher doBuild(AbstractConfigProducer ancestor, Element searcherElement) {
FederationSearcherModel model = new FederationSearcherModelBuilder(searcherElement).build();
Optional<Component> targetSelector = buildTargetSelector(ancestor, searcherElement, model.getComponentId());
return new FederationSearcher(model, targetSelector);
}
use of com.yahoo.vespa.model.container.component.Component in project vespa by vespa-engine.
the class StandaloneDocprocContainerTest method requireNoMbusProvidersWhenStandalone.
@Test
public void requireNoMbusProvidersWhenStandalone() {
ContainerCluster containerCluster = setupCluster(true);
Map<ComponentId, Component<?, ?>> components = containerCluster.getComponentsMap();
boolean foundAtLeastOneClient = false;
boolean foundAtLeastOneServer = false;
for (ComponentId componentId : components.keySet()) {
if (componentId.stringValue().contains("MbusClient"))
foundAtLeastOneClient = true;
if (componentId.stringValue().contains("MbusServer"))
foundAtLeastOneServer = true;
}
assertThat(foundAtLeastOneClient, is(false));
assertThat(foundAtLeastOneServer, is(false));
}
use of com.yahoo.vespa.model.container.component.Component in project vespa by vespa-engine.
the class StandaloneDocprocContainerTest method requireMbusProvidersWhenNonStandalone.
@Test
public void requireMbusProvidersWhenNonStandalone() {
ContainerCluster containerCluster = setupCluster(false);
Map<ComponentId, Component<?, ?>> components = containerCluster.getComponentsMap();
boolean foundAtLeastOneClient = false;
boolean foundAtLeastOneServer = false;
for (ComponentId componentId : components.keySet()) {
if (componentId.stringValue().contains("MbusClient"))
foundAtLeastOneClient = true;
if (componentId.stringValue().contains("MbusServer"))
foundAtLeastOneServer = true;
}
assertThat(foundAtLeastOneClient, is(true));
assertThat(foundAtLeastOneServer, is(true));
}
Aggregations