use of com.yahoo.component.chain.model.ChainsModel in project vespa by vespa-engine.
the class Chains method validate.
public void validate() throws Exception {
ChainsModel chainsModel = new ChainsModel();
for (CHAIN chain : allChains().allComponents()) {
chainsModel.register(chain.getChainSpecification());
}
for (ChainedComponent<?> component : allComponents()) {
chainsModel.register(component.getGlobalComponentId(), component.model);
}
chainsModel.validate();
super.validate();
}
use of com.yahoo.component.chain.model.ChainsModel in project vespa by vespa-engine.
the class SearchHandler method setupSearchChainRegistry.
private void setupSearchChainRegistry(ComponentRegistry<Searcher> searchers, ChainsConfig chainsConfig) {
ChainsModel chainsModel = ChainsModelBuilder.buildFromConfig(chainsConfig);
ChainsConfigurer.prepareChainRegistry(searchChainRegistry, chainsModel, searchers);
searchChainRegistry.freeze();
}
use of com.yahoo.component.chain.model.ChainsModel in project vespa by vespa-engine.
the class FilterChainRepository method buildChainRegistry.
private static ChainRegistry<FilterWrapper> buildChainRegistry(ChainsConfig chainsConfig, ComponentRegistry<?>... filters) {
ChainRegistry<FilterWrapper> chainRegistry = new ChainRegistry<>();
ChainsModel chainsModel = ChainsModelBuilder.buildFromConfig(chainsConfig);
ChainsConfigurer.prepareChainRegistry(chainRegistry, chainsModel, allFiltersWrapped(filters));
chainRegistry.freeze();
return chainRegistry;
}
Aggregations