summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgjoranv <gv@oath.com>2018-07-17 11:19:32 +0200
committergjoranv <gv@oath.com>2018-07-17 11:19:32 +0200
commitb9b704588a6b0d588074c2800a15d6723bc17de0 (patch)
tree682ba32ea947467f7c1a3bf42fac5e7e2b772da5
parent12105415a1c7ab6f2589781e62cc202739d9d993 (diff)
Remove ConfiguredHttpClientSearcher
-rw-r--r--container-search/src/main/java/com/yahoo/search/federation/http/ConfiguredHTTPClientSearcher.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/federation/http/ConfiguredHTTPClientSearcher.java b/container-search/src/main/java/com/yahoo/search/federation/http/ConfiguredHTTPClientSearcher.java
deleted file mode 100644
index 8abd6deb5f9..00000000000
--- a/container-search/src/main/java/com/yahoo/search/federation/http/ConfiguredHTTPClientSearcher.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.search.federation.http;
-
-import java.util.Collections;
-
-import com.yahoo.component.ComponentId;
-import com.yahoo.search.federation.ProviderConfig;
-import com.yahoo.search.Result;
-import com.yahoo.search.searchchain.Execution;
-import com.yahoo.statistics.Statistics;
-
-
-/**
- * Superclass for http client searchers which depends on config. All this is doing is translating
- * the provider and cache configurations to parameters which are passed upwards.
- *
- * @author bratseth
- */
-@Deprecated
-public abstract class ConfiguredHTTPClientSearcher extends HTTPClientSearcher {
-
- /** Create this from a configuraton */
- public ConfiguredHTTPClientSearcher(final ComponentId id, final ProviderConfig providerConfig, Statistics manager) {
- super(id, ConfiguredSearcherHelper.toConnectionList(providerConfig), new HTTPParameters(providerConfig), manager);
- }
-
- /** Create an instance from direct parameters having a single connection. Useful for testing */
- public ConfiguredHTTPClientSearcher(String idString,String host,int port,String path, Statistics manager) {
- super(new ComponentId(idString), Collections.singletonList(new Connection(host,port)),path, manager);
- }
-
- /** Forwards to the next in chain fill(result,summaryName) */
- @Override
- public void fill(Result result,String summaryName, Execution execution,Connection connection) {
- execution.fill(result,summaryName);
- }
-
-}