diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-05-31 18:50:55 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2022-06-08 11:45:23 +0200 |
commit | d8c94dd62a910e8f66bbe341fa96eef6bb3f1121 (patch) | |
tree | 445d7d5cfce08f24ae648491da853e9c63fd868e /container-search/src/main/java/com/yahoo/search/cluster/NodeManager.java | |
parent | 5d952ff9d61050bdba843dcb76ee8a626b2094f5 (diff) |
Remove on Vespa 8
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/cluster/NodeManager.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/cluster/NodeManager.java | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/cluster/NodeManager.java b/container-search/src/main/java/com/yahoo/search/cluster/NodeManager.java index db583a65606..c4a532bdb03 100644 --- a/container-search/src/main/java/com/yahoo/search/cluster/NodeManager.java +++ b/container-search/src/main/java/com/yahoo/search/cluster/NodeManager.java @@ -20,25 +20,12 @@ public interface NodeManager<T> { /** Called when a working node fails */ void failed(T node); - /** - * Called when a node should be pinged. - * This *must* lead to either a call to NodeMonitor.failed or NodeMonitor.responded - * - * @deprecated Use ping(ClusterMonitor clusterMonitor, T node, Executor executor) instead. - */ - @Deprecated // TODO: Remove on Vespa 8 - default void ping(T node, Executor executor) { - throw new IllegalStateException("If you have not overrriden ping(ClusterMonitor<T> clusterMonitor, T node, Executor executor), you should at least have overriden this method."); - } - /** * Called when a node should be pinged. * This *must* lead to either a call to ClusterMonitor.failed or ClusterMonitor.responded */ - default void ping(ClusterMonitor<T> clusterMonitor, T node, Executor executor) { - ping(node, executor); - } - + void ping(ClusterMonitor<T> clusterMonitor, T node, Executor executor); + /** Called right after a ping has been issued to each node. This default implementation does nothing. */ default void pingIterationCompleted() {} |