Search in sources :

Example 1 with HttpProviderSearcher

use of com.yahoo.vespa.model.container.search.searchchain.HttpProviderSearcher in project vespa by vespa-engine.

the class DomProviderBuilder method buildHttpProvider.

private Provider buildHttpProvider(ChainSpecification specWithoutInnerSearchers, ProviderReader providerReader, FederationOptions federationOptions) {
    ensureEmpty(specWithoutInnerSearchers.componentId, providerReader.clusterName);
    Provider httpProvider = buildEmptyHttpProvider(specWithoutInnerSearchers, providerReader, federationOptions);
    httpProvider.addInnerComponent(new HttpProviderSearcher(new ChainedComponentModel(HttpProviderSpec.toBundleInstantiationSpecification(HttpProviderSpec.Type.valueOf(providerReader.type)), Dependencies.emptyDependencies())));
    return httpProvider;
}
Also used : ChainedComponentModel(com.yahoo.component.chain.model.ChainedComponentModel) HttpProviderSearcher(com.yahoo.vespa.model.container.search.searchchain.HttpProviderSearcher) LocalProvider(com.yahoo.vespa.model.container.search.searchchain.LocalProvider) HttpProvider(com.yahoo.vespa.model.container.search.searchchain.HttpProvider) Provider(com.yahoo.vespa.model.container.search.searchchain.Provider)

Aggregations

ChainedComponentModel (com.yahoo.component.chain.model.ChainedComponentModel)1 HttpProvider (com.yahoo.vespa.model.container.search.searchchain.HttpProvider)1 HttpProviderSearcher (com.yahoo.vespa.model.container.search.searchchain.HttpProviderSearcher)1 LocalProvider (com.yahoo.vespa.model.container.search.searchchain.LocalProvider)1 Provider (com.yahoo.vespa.model.container.search.searchchain.Provider)1