diff options
author | gjoranv <gv@verizonmedia.com> | 2019-06-03 15:13:45 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2019-06-03 15:13:45 +0200 |
commit | e13eeaee7417134a0d67a3a144906a44351b6900 (patch) | |
tree | 62ec8c5907a53dc1b27577ba9af50dc38f7fb104 /config-model | |
parent | 34920d57c38c11f8ef8979071992e206fcd0ab03 (diff) |
Use Correct cluster type, and add a TODO.
- FS4ResourcePool will probably be removed before fixing the TODO
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/main/java/com/yahoo/vespa/model/container/search/ContainerSearch.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/search/ContainerSearch.java b/config-model/src/main/java/com/yahoo/vespa/model/container/search/ContainerSearch.java index 6c537e359d1..d2f7c5e4549 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/container/search/ContainerSearch.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/container/search/ContainerSearch.java @@ -5,6 +5,7 @@ import com.yahoo.container.bundle.BundleInstantiationSpecification; import com.yahoo.osgi.provider.model.ComponentModel; import com.yahoo.prelude.fastsearch.FS4ResourcePool; import com.yahoo.prelude.semantics.SemanticRulesConfig; +import com.yahoo.vespa.model.container.ApplicationContainerCluster; import com.yahoo.vespa.model.container.ContainerCluster; import com.yahoo.vespa.model.container.component.Component; import com.yahoo.vespa.model.container.component.ContainerSubsystem; @@ -45,14 +46,15 @@ public class ContainerSearch extends ContainerSubsystem<SearchChains> private SemanticRules semanticRules; private PageTemplates pageTemplates; - public ContainerSearch(ContainerCluster cluster, SearchChains chains, Options options) { + public ContainerSearch(ApplicationContainerCluster cluster, SearchChains chains, Options options) { super(chains); this.options = options; - cluster.addComponent(getFS4ResourcePool()); + // TODO: Should be added to container instead of cluster to get proper configId for qr config. + cluster.addComponent(getFS4ResourcePool()); } - private Component<?, ComponentModel> getFS4ResourcePool() { + private static Component<?, ComponentModel> getFS4ResourcePool() { BundleInstantiationSpecification spec = BundleInstantiationSpecification. getInternalSearcherSpecificationFromStrings(FS4ResourcePool.class.getName(), null); return new Component<>(new ComponentModel(spec)); |