Package jade.core

Interface Node

  • All Superinterfaces:
    Serializable, Serializable
    All Known Implementing Classes:
    BaseNode

    public interface Node
    extends Serializable
    This interface represents a node of a JADE platform (i.e. a component that can host a slice of a platform-level service). Concrete nodes for a platform are created by the concrete IMTP manager.
    Author:
    Giovanni Rimassa - FRAMeTech s.r.l.
    See Also:
    IMTPManager
    • Method Detail

      • setName

        void setName​(String name)
      • hasPlatformManager

        boolean hasPlatformManager()
      • unexportSlice

        void unexportSlice​(String serviceName)
      • accept

        Object accept​(HorizontalCommand cmd)
               throws IMTPException
        Accepts a command. If this node is a proxy, the accept() method is a remote method, forwarding the command to the remote location it represents.
        Parameters:
        cmd - The horizontal command to process.
        Returns:
        The object that is the result of processing the command.
        Throws:
        IMTPException - If a communication error occurs while contacting the remote node.
      • ping

        boolean ping​(boolean hang)
              throws IMTPException
        Performs a ping operation on this node, to check whether it is still alive.
        Parameters:
        hang - If true, the call hangs until the node exits or is interrupted.
        Returns:
        If the node is currently terminating, true is returned, else false
        Throws:
        IMTPException