Search in sources :

Example 1 with ChainsModel

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();
}
Also used : ChainsModel(com.yahoo.component.chain.model.ChainsModel)

Example 2 with ChainsModel

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();
}
Also used : ChainsModel(com.yahoo.component.chain.model.ChainsModel)

Example 3 with ChainsModel

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;
}
Also used : ChainsModel(com.yahoo.component.chain.model.ChainsModel) ChainRegistry(com.yahoo.processing.execution.chain.ChainRegistry)

Aggregations

ChainsModel (com.yahoo.component.chain.model.ChainsModel)3 ChainRegistry (com.yahoo.processing.execution.chain.ChainRegistry)1