Class rma

  • All Implemented Interfaces:
    TimerListener, Serializable, Serializable, Runnable

    public class rma
    extends ToolAgent
    Remote Management Agent agent. This class implements JADE RMA agent. JADE applications cannot use this class directly, but interact with it through ACL message passing. Besides, this agent has a GUI through which JADE Agent Platform can be administered.
    Version:
    $Date$ $Revision$
    Author:
    Giovanni Rimassa - Universita' di Parma
    See Also:
    Serialized Form
    • Constructor Detail

      • rma

        public rma()
    • Method Detail

      • toolSetup

        protected void toolSetup()
        This method starts the RMA behaviours to allow the agent to carry on its duties within JADE agent platform.
        Overrides:
        toolSetup in class ToolAgent
      • toolTakeDown

        protected void toolTakeDown()
        Cleanup during agent shutdown. This method cleans things up when RMA agent is destroyed, disconnecting from AMS agent and closing down the platform administration GUI.
        Overrides:
        toolTakeDown in class ToolAgent
      • beforeMove

        protected void beforeMove()
        Description copied from class: Agent
        This empty placeholder shall be overridden by user defined agents to execute some actions before the original agent instance on the source container is stopped (e.g. releasing local resources such as a GUI).
        IMPORTANT: At this point, it is ensured that the move process is successful and that a moved agent instance has been created on the destination container Therefore setting the value of a class field in this method will have no impact on the moved agent instance. Such parameters must indeed be set before the doMove() method is called.
        NOT available in MIDP
        Overrides:
        beforeMove in class ToolAgent
      • afterMove

        protected void afterMove()
        Description copied from class: Agent
        Actions to perform after moving. This empty placeholder method can be overridden by user defined agents to execute some actions just after arriving to the destination agent container for a migration.
        NOT available in MIDP
        Overrides:
        afterMove in class ToolAgent
      • afterClone

        protected void afterClone()
        Description copied from class: Agent
        Actions to perform after cloning. This empty placeholder method can be overridden by user defined agents to execute some actions just after creating an agent copy to the destination agent container.
        NOT available in MIDP
        Overrides:
        afterClone in class ToolAgent
      • getModel

        public AgentTreeModel getModel()
        Callback method for platform management GUI.
      • newAgent

        public void newAgent​(String agentName,
                             String className,
                             Object[] arg,
                             String containerName)
        Callback method for platform management GUI.
      • newAgent

        public void newAgent​(String agentName,
                             String className,
                             Object[] arg,
                             String ownerName,
                             String containerName)
        Callback method for platform management GUI.
      • suspendAgent

        public void suspendAgent​(AID name)
        Callback method for platform management GUI.
      • suspendContainer

        public void suspendContainer​(String name)
        Callback method for platform management GUI.
      • resumeAgent

        public void resumeAgent​(AID name)
        Callback method for platform management GUI.
      • changeAgentOwnership

        public void changeAgentOwnership​(AID name,
                                         String ownership)
        Callback method for platform management GUI.
      • resumeContainer

        public void resumeContainer​(String name)
        Callback method for platform management GUI.
      • killAgent

        public void killAgent​(AID name)
        Callback method for platform management GUI.
      • saveContainer

        public void saveContainer​(String name,
                                  String repository)
        Callback method for platform management GUI.
      • loadContainer

        public void loadContainer​(String name,
                                  String repository)
        Callback method for platform management GUI.
      • killContainer

        public void killContainer​(String name)
        Callback method for platform management GUI.
      • moveAgent

        public void moveAgent​(AID name,
                              String container)
        Callback method for platform management
      • cloneAgent

        public void cloneAgent​(AID name,
                               String newName,
                               String container)
        Callback method for platform management
      • saveAgent

        public void saveAgent​(AID name,
                              String repository)
        Callback method for platform management
      • loadAgent

        public void loadAgent​(AID name,
                              String repository,
                              String container)
        Callback method for platform management
      • freezeAgent

        public void freezeAgent​(AID name,
                                String repository)
        Callback method for platform management
      • thawAgent

        public void thawAgent​(AID name,
                              String repository,
                              ContainerID newContainer)
        Callback method for platform management
      • exit

        public void exit()
        Callback method for platform management GUI.
      • shutDownPlatform

        public void shutDownPlatform()
        Callback method for platform management GUI.
      • installMTP

        public void installMTP​(String containerName)
      • uninstallMTP

        public void uninstallMTP​(String containerName)
      • uninstallMTP

        public void uninstallMTP​(String containerName,
                                 String address)
      • addRemotePlatform

        public void addRemotePlatform​(AID remoteAMS)
      • addRemotePlatformFromURL

        public void addRemotePlatformFromURL​(String url)
      • viewAPDescription

        public void viewAPDescription​(String title)
      • removeRemotePlatform

        public void removeRemotePlatform​(APDescription platform)
      • refreshRemoteAgent

        public void refreshRemoteAgent​(APDescription platform,
                                       AID ams)
      • registerRemoteAgentWithAMS

        public void registerRemoteAgentWithAMS​(AMSAgentDescription amsd)