Package jade.core
Interface IMTPManager
-
- All Known Implementing Classes:
LEAPIMTPManager,RMIIMTPManager
public interface IMTPManager- Author:
- Giovanni Caire - Telecom Italia Lab
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_MANAGER_NAME
-
Method Summary
All Methods Instance Methods Abstract 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 this IMTPManagervoidreconnected(PlatformManager pm)Inform the local IMTPManager that this node is now connected to the given PlatformManagervoidshutDown()Release all resources of this IMTPManagerTransportAddressstringToAddr(String addr)voidunexportPlatformManager(PlatformManager sm)Stops making the platform Service Manager available through this IMTP.
-
-
-
Field Detail
-
SERVICE_MANAGER_NAME
static final String SERVICE_MANAGER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
void initialize(Profile p) throws IMTPException
Initialize this IMTPManager- Throws:
IMTPException
-
shutDown
void shutDown()
Release all resources of this IMTPManager
-
getLocalNode
Node getLocalNode() throws IMTPException
Access the node that represents the local JVM.- Returns:
- A
Nodeobject, representing the local node of this platform. - Throws:
IMTPException- If something goes wrong in the underlying network transport.
-
exportPlatformManager
void exportPlatformManager(PlatformManager mgr) throws IMTPException
Makes the platform Service Manager available through this IMTP.- Parameters:
mgr- TheServiceManagerimplementation that is to be made available across the network.- Throws:
IMTPException- If something goes wrong in the underlying network transport.
-
unexportPlatformManager
void unexportPlatformManager(PlatformManager sm) throws IMTPException
Stops making the platform Service Manager available through this IMTP.- Throws:
IMTPException- If something goes wrong in the underlying network transport.
-
getPlatformManagerProxy
PlatformManager getPlatformManagerProxy() throws IMTPException
Retrieve a proxy to the PlatformManager specified in the local Profile- Throws:
IMTPException- If something goes wrong in the underlying network transport.
-
getPlatformManagerProxy
PlatformManager getPlatformManagerProxy(String addr) throws IMTPException
Retrieve a proxy to the PlatformManager listening at a given address- Throws:
IMTPException- If something goes wrong in the underlying network transport.
-
reconnected
void reconnected(PlatformManager pm)
Inform the local IMTPManager that this node is now connected to the given PlatformManager
-
createSliceProxy
Service.Slice createSliceProxy(String serviceName, Class itf, Node where) throws IMTPException
Builds a proxy object for a remote service slice.- Parameters:
itfs- The array of all the interfaces that have to be implemented by the returned proxy. The first element of the array must be an interface derived fromService.Slice.- 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
-
getLocalAddresses
List getLocalAddresses() throws IMTPException
Return the the List of TransportAddress where this IMTP is waiting for intra-platform remote calls.- Throws:
IMTPException
-
stringToAddr
TransportAddress stringToAddr(String addr) throws IMTPException
- Throws:
IMTPException
-
-