Package jade.core

Interface NodeEventListener


  • public interface NodeEventListener
    This interface is used to notify the JADE kernel of important events related to the platform nodes.
    • Node addition.
    • Node removal.
    • An existing node has become suddenly unreachable.
    • An existing node has become reachable again.
    Author:
    Giovanni Rimassa - FRAMeTech s.r.l.
    See Also:
    ServiceManagerImpl
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void nodeAdded​(Node n)
      This method is invoked when a new node has joined the platform.
      void nodeReachable​(Node n)
      This method is invoked when the local node discovers that a platform node, that was previously unreachable, has become reachable again.
      void nodeRemoved​(Node n)
      This method is invoked when a node has left the platform.
      void nodeUnreachable​(Node n)
      This method is invoked when the local node discovers that a platform node is not reachable anymore.
    • Method Detail

      • nodeAdded

        void nodeAdded​(Node n)
        This method is invoked when a new node has joined the platform.
        Parameters:
        n - The newly added platform node.
      • nodeRemoved

        void nodeRemoved​(Node n)
        This method is invoked when a node has left the platform.
        Parameters:
        n - The node that has just left.
      • nodeUnreachable

        void nodeUnreachable​(Node n)
        This method is invoked when the local node discovers that a platform node is not reachable anymore. The discovery is due to some IMTP-specific network mechanism, and does not mean that the remote node has failed. A subsequent nodeReachable() call might be issued when the IMTP connection becomes working again.
        Parameters:
        n - The node that has become unreachable.
      • nodeReachable

        void nodeReachable​(Node n)
        This method is invoked when the local node discovers that a platform node, that was previously unreachable, has become reachable again.
        Parameters:
        n - The node that has become reachable again.