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
Modifier and TypeMethodDescriptionvoid
Called when a working node failsdefault String
name()
Name to identify Nodemanagervoid
ping
(ClusterMonitor<T> clusterMonitor, T node, Executor executor) Called when a node should be pinged.default void
Called right after a ping has been issued to each node.void
Called when a failed node is working (ready for production) again
-
Method Details
-
name
Name to identify Nodemanager -
working
Called when a failed node is working (ready for production) again -
failed
Called when a working node fails -
ping
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.
-