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 TypeMethodDescriptionvoidCalled when a working node failsdefault Stringname()Name to identify Nodemanagervoidping(ClusterMonitor<T> clusterMonitor, T node, Executor executor) Called when a node should be pinged.default voidCalled right after a ping has been issued to each node.voidCalled 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.
-