Interface NodeManager<T>

  • All Known Implementing Classes:
    ClusterSearcher

    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 
      Modifier and Type Method Description
      void failed​(T node)
      Called when a working node fails
      void ping​(T node, java.util.concurrent.Executor executor)
      Called when a node should be pinged.
      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

        void ping​(T node,
                  java.util.concurrent.Executor executor)
        Called when a node should be pinged. This *must* lead to either a call to NodeMonitor.failed or NodeMonitor.responded
      • pingIterationCompleted

        default void pingIterationCompleted()
        Called right after a ping has been issued to each node. This default implementation does nothing.