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 Type
    Method
    Description
    void
    failed(T node)
    Called when a working node fails
    default String
    Name to identify Nodemanager
    void
    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
    working(T node)
    Called when a failed node is working (ready for production) again
  • Method Details

    • name

      default String name()
      Name to identify Nodemanager
    • 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

      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.