Package jade.imtp.leap
Class LEAPIMTPManager
- java.lang.Object
-
- jade.imtp.leap.LEAPIMTPManager
-
- All Implemented Interfaces:
IMTPManager
public class LEAPIMTPManager extends Object implements IMTPManager
- Author:
- Giovanni Caire - Telecom Italia Lab
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHANGE_PORT_IF_BUSY-
Fields inherited from interface jade.core.IMTPManager
SERVICE_MANAGER_NAME
-
-
Constructor Summary
Constructors Constructor Description LEAPIMTPManager()Default constructor used to dynamically instantiate a new LEAPIMTPManager object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Service.SlicecreateSliceProxy(String serviceName, Class itf, Node where)Builds a proxy object for a remote service slice.voidexportPlatformManager(PlatformManager mgr)Makes the platform Service Manager available through this IMTP.ListgetLocalAddresses()Return the the List of TransportAddress where this IMTP is waiting for intra-platform remote calls.NodegetLocalNode()Access the node that represents the local JVM.PlatformManagergetPlatformManagerProxy()Retrieve a proxy to the PlatformManager specified in the local ProfilePlatformManagergetPlatformManagerProxy(String addr)Retrieve a proxy to the PlatformManager listening at a given addressvoidinitialize(Profile p)Initialize the support for intra-platform communicationvoidreconnected(PlatformManager pm)Inform the local IMTPManager that this node is now connected to the given PlatformManagervoidshutDown()Release all resources of this LEAPIMTPManagerTransportAddressstringToAddr(String addr)voidunexportPlatformManager(PlatformManager pm)Stops making the platform Service Manager available through this IMTP.
-
-
-
Field Detail
-
CHANGE_PORT_IF_BUSY
public static final String CHANGE_PORT_IF_BUSY
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize(Profile p) throws IMTPException
Initialize the support for intra-platform communication- Specified by:
initializein interfaceIMTPManager- Throws:
IMTPException
-
getLocalNode
public Node getLocalNode() throws IMTPException
Description copied from interface:IMTPManagerAccess the node that represents the local JVM.- Specified by:
getLocalNodein interfaceIMTPManager- Returns:
- A
Nodeobject, representing the local node of this platform. - Throws:
IMTPException- If something goes wrong in the underlying network transport.
-
exportPlatformManager
public void exportPlatformManager(PlatformManager mgr) throws IMTPException
Description copied from interface:IMTPManagerMakes the platform Service Manager available through this IMTP.- Specified by:
exportPlatformManagerin interfaceIMTPManager- Parameters:
mgr- TheServiceManagerimplementation that is to be made available across the network.- Throws:
IMTPException- If something goes wrong in the underlying network transport.
-
unexportPlatformManager
public void unexportPlatformManager(PlatformManager pm) throws IMTPException
Description copied from interface:IMTPManagerStops making the platform Service Manager available through this IMTP.- Specified by:
unexportPlatformManagerin interfaceIMTPManager- Throws:
IMTPException- If something goes wrong in the underlying network transport.
-
getPlatformManagerProxy
public PlatformManager getPlatformManagerProxy() throws IMTPException
Description copied from interface:IMTPManagerRetrieve a proxy to the PlatformManager specified in the local Profile- Specified by:
getPlatformManagerProxyin interfaceIMTPManager- Throws:
IMTPException- If something goes wrong in the underlying network transport.
-
getPlatformManagerProxy
public PlatformManager getPlatformManagerProxy(String addr) throws IMTPException
Description copied from interface:IMTPManagerRetrieve a proxy to the PlatformManager listening at a given address- Specified by:
getPlatformManagerProxyin interfaceIMTPManager- Throws:
IMTPException- If something goes wrong in the underlying network transport.
-
reconnected
public void reconnected(PlatformManager pm)
Description copied from interface:IMTPManagerInform the local IMTPManager that this node is now connected to the given PlatformManager- Specified by:
reconnectedin interfaceIMTPManager
-
createSliceProxy
public Service.Slice createSliceProxy(String serviceName, Class itf, Node where) throws IMTPException
Description copied from interface:IMTPManagerBuilds a proxy object for a remote service slice.- Specified by:
createSliceProxyin interfaceIMTPManager- Returns:
- A proxy object that can be safely casted to any of the
interfaces in the
itfsarray. - Throws:
IMTPException- If something goes wrong in the underlying network transport.- See Also:
Service
-
shutDown
public void shutDown()
Release all resources of this LEAPIMTPManager- Specified by:
shutDownin interfaceIMTPManager
-
getLocalAddresses
public List getLocalAddresses()
Description copied from interface:IMTPManagerReturn the the List of TransportAddress where this IMTP is waiting for intra-platform remote calls.- Specified by:
getLocalAddressesin interfaceIMTPManager
-
stringToAddr
public TransportAddress stringToAddr(String addr) throws IMTPException
- Specified by:
stringToAddrin interfaceIMTPManager- Throws:
IMTPException
-
-