use of com.yahoo.container.jdisc.ContainerMbusConfig 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());
}
use of com.yahoo.container.jdisc.ContainerMbusConfig in project vespa by vespa-engine.
the class SessionCache method start.
private void start() {
ContainerMbusConfig mbusConfig = ConfigGetter.getConfig(ContainerMbusConfig.class, containerMbusConfigId);
if (documentManagerConfigId != null) {
documentTypeManager.configure(documentManagerConfigId);
}
LoadTypeSet loadTypeSet = new LoadTypeSet(loadTypeConfigId);
DocumentProtocol protocol = new DocumentProtocol(documentTypeManager, identity, loadTypeSet);
messageBus = createSharedMessageBus(mbusConfig, slobrokConfigId, identity, protocol);
// TODO: stop doing subscriptions to config when that is to be solved in slobrok as well
configAgent = new ConfigAgent(messagebusConfigId, messageBus.messageBus());
configAgent.subscribe();
}
Aggregations