diff options
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java b/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java index 6c48b00d175..2783b45f724 100644 --- a/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java +++ b/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java @@ -6,7 +6,6 @@ import com.yahoo.net.HostName; import com.yahoo.prelude.Pong; import com.yahoo.search.cluster.ClusterMonitor; import com.yahoo.search.cluster.NodeManager; -import com.yahoo.vespa.config.search.DispatchNodesConfig; import java.util.Collection; import java.util.HashMap; @@ -42,11 +41,6 @@ public class SearchCluster implements NodeManager<Node> { */ private final Node localCorpusDispatchTarget; - public SearchCluster(String clusterId, double minActivedocsPercentage, - DispatchNodesConfig nodesConfig, - VipStatus vipStatus, PingFactory pingFactory) { - this(clusterId, minActivedocsPercentage, toNodes(nodesConfig), vipStatus, pingFactory); - } public SearchCluster(String clusterId, double minActivedocsPercentage, List<Node> nodes, VipStatus vipStatus, PingFactory pingFactory) { this(clusterId, toGroups(nodes, minActivedocsPercentage), vipStatus, pingFactory); @@ -89,12 +83,6 @@ public class SearchCluster implements NodeManager<Node> { return localSearchNode; } - private static List<Node> toNodes(DispatchNodesConfig nodesConfig) { - return nodesConfig.node().stream() - .map(n -> new Node(n.key(), n.host(), n.group())) - .toList(); - } - private static SearchGroupsImpl toGroups(Collection<Node> nodes, double minActivedocsPercentage) { Map<Integer, Group> groups = new HashMap<>(); for (Map.Entry<Integer, List<Node>> group : nodes.stream().collect(Collectors.groupingBy(Node::group)).entrySet()) { |