diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-02-19 10:29:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 10:29:32 +0100 |
commit | 51fc998599a4751bf0cbfa1c34971338714e5c85 (patch) | |
tree | b6c6fc4cd72522a99a7abecfb82956f2c0a3af0c /container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java | |
parent | 1a230786bd0709198dcd8e72ed8d326d26c073d8 (diff) |
Revert "Revert "Revert "Revert "Create a resourcepool so that we do not need to reconnect to content …""""
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 | 7 |
1 files changed, 7 insertions, 0 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 1da13f6c082..7619cb34b77 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 @@ -83,6 +83,13 @@ public class SearchCluster implements NodeManager<Node> { nodesByHost, groups); } + + /* Testing only */ + public SearchCluster(String clusterId, DispatchConfig dispatchConfig, + VipStatus vipStatus, PingFactory pingFactory) { + this(clusterId, dispatchConfig, 1, vipStatus, pingFactory); + } + public void addMonitoring(ClusterMonitor clusterMonitor) { for (var group : orderedGroups) { for (var node : group.nodes()) |