Package jade.core

Class BaseNode

  • All Implemented Interfaces:
    Node, Serializable, Serializable

    public abstract class BaseNode
    extends Object
    implements Node, Serializable
    This class provides a partial implementation of the Node interface. Concrete IMTPs will have to provide a full implementation of the Node interface, possibly by subclassing this class.
    Author:
    Giovanni Rimassa - FRAMeTech s.r.l.
    See Also:
    Serialized Form
    • Field Detail

      • myServiceManager

        protected transient ServiceManager myServiceManager
    • Constructor Detail

      • BaseNode

        public BaseNode​(String name,
                        boolean hasPM)
    • Method Detail

      • setName

        public void setName​(String name)
        Specified by:
        setName in interface Node
      • hasPlatformManager

        public boolean hasPlatformManager()
        Specified by:
        hasPlatformManager in interface Node
      • unexportSlice

        public void unexportSlice​(String serviceName)
        Specified by:
        unexportSlice in interface Node
      • serveHorizontalCommand

        public Object serveHorizontalCommand​(HorizontalCommand cmd)
                                      throws ServiceException
        Provides an IMTP independent implementation for the horizontal command serving mechanism. IMTP dependent implementations of the accept() method should invoke this method.
        Parameters:
        cmd - The horizontal command to process.
        Returns:
        The object that is the result of processing the command.
        Throws:
        ServiceException - If the service the command belongs to is not present on this node.
      • setCommandProcessor

        public void setCommandProcessor​(jade.core.CommandProcessor cp)
      • setServiceManager

        public void setServiceManager​(ServiceManager mgr)