Package com.yahoo.search.cluster
Interface NodeManager<T>
-
- All Known Implementing Classes:
ClusterSearcher
,SearchCluster
public interface NodeManager<T>
Must be implemented by a node collection which wants it's node state monitored by a ClusterMonitor- Author:
- bratseth
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description void
failed(T node)
Called when a working node failsdefault void
ping(ClusterMonitor<T> clusterMonitor, T node, Executor executor)
Called when a node should be pinged.default void
ping(T node, Executor executor)
Deprecated.Use ping(ClusterMonitor clusterMonitor, T node, Executor executor) instead.default void
pingIterationCompleted()
Called right after a ping has been issued to each node.void
working(T node)
Called when a failed node is working (ready for production) again
-
-
-
Method Detail
-
working
void working(T node)
Called when a failed node is working (ready for production) again
-
failed
void failed(T node)
Called when a working node fails
-
ping
@Deprecated default void ping(T node, Executor executor)
Deprecated.Use ping(ClusterMonitor clusterMonitor, T node, Executor executor) instead.Called when a node should be pinged. This *must* lead to either a call to NodeMonitor.failed or NodeMonitor.responded
-
ping
default void ping(ClusterMonitor<T> clusterMonitor, T node, Executor executor)
Called when a node should be pinged. This *must* lead to either a call to ClusterMonitor.failed or ClusterMonitor.responded
-
pingIterationCompleted
default void pingIterationCompleted()
Called right after a ping has been issued to each node. This default implementation does nothing.
-
-