jade.core
Interface IMTPManager


public interface IMTPManager

Author:
Giovanni Caire - Telecom Italia Lab

Method Summary
 AgentProxy createAgentProxy(AgentContainer ac, AID id)
          Creates a proxy for the given agent, on the given container.
 List getLocalAddresses()
          Return the the List of TransportAddress where this IMTP is waiting for intra-platform remote calls.
 MainContainer getMain(boolean reconnect)
          Return a stub of the remote Main Container.
 void initialize(Profile p)
          Initialize this IMTPManager
 void remotize(AgentContainer ac)
          Makes the indicated AgentContainer accessible from remote JVMs.
 void remotize(MainContainer mc)
          Makes the indicated MainContainer accessible from remote JVMs.
 void shutDown()
          Release all resources of this IMTPManager
 void unremotize(AgentContainer ac)
          Disconnects the given Agent Container and hides it from remote JVMs.
 void unremotize(MainContainer mc)
          Disconnects the given Main Container and hides it from remote JVMs.
 

Method Detail

initialize

public void initialize(Profile p)
                throws IMTPException
Initialize this IMTPManager

remotize

public void remotize(AgentContainer ac)
              throws IMTPException
Makes the indicated AgentContainer accessible from remote JVMs.

remotize

public void remotize(MainContainer mc)
              throws IMTPException
Makes the indicated MainContainer accessible from remote JVMs.

unremotize

public void unremotize(AgentContainer ac)
                throws IMTPException
Disconnects the given Agent Container and hides it from remote JVMs.

unremotize

public void unremotize(MainContainer mc)
                throws IMTPException
Disconnects the given Main Container and hides it from remote JVMs.

createAgentProxy

public AgentProxy createAgentProxy(AgentContainer ac,
                                   AID id)
                            throws IMTPException
Creates a proxy for the given agent, on the given container.

getMain

public MainContainer getMain(boolean reconnect)
                      throws IMTPException
Return a stub of the remote Main Container.
Parameters:
reconnect - Indicates whether or not the stub must be created from scratch

shutDown

public void shutDown()
Release all resources of this IMTPManager

getLocalAddresses

public List getLocalAddresses()
                       throws IMTPException
Return the the List of TransportAddress where this IMTP is waiting for intra-platform remote calls.