Package jade.core.messaging
Class MessagingProxy
- java.lang.Object
-
- jade.core.SliceProxy
-
- jade.core.messaging.MessagingProxy
-
- All Implemented Interfaces:
MessagingSlice,Service.Slice,Serializable,Serializable
public class MessagingProxy extends SliceProxy implements MessagingSlice
The remote proxy for the JADE kernel-level service managing the message passing subsystem installed in the platform.- Author:
- Giovanni Rimassa - FRAMeTech s.r.l.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface jade.core.messaging.MessagingSlice
DEAD_MTP, H_ADDROUTE, H_CURRENTALIASES, H_DEADALIAS, H_DEADMTP, H_DISPATCHLOCALLY, H_GETAGENTLOCATION, H_INSTALLMTP, H_NEWALIAS, H_NEWMTP, H_REMOVEROUTE, H_ROUTEOUT, H_TRANSFERLOCALALIASES, H_UNINSTALLMTP, INSTALL_MTP, NAME, NEW_MTP, NOTIFY_FAILURE, SEND_MESSAGE, SET_PLATFORM_ADDRESSES, UNINSTALL_MTP
-
-
Constructor Summary
Constructors Constructor Description MessagingProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRoute(MTPDescriptor mtp, String sliceName)voidcurrentAliases(Hashtable aliases)voiddeadAlias(AID alias)voiddeadMTP(MTPDescriptor mtp, ContainerID cid)voiddispatchLocally(AID senderID, GenericMessage msg, AID receiverID)ContainerIDgetAgentLocation(AID agentID)MTPDescriptorinstallMTP(String address, String className)voidnewAlias(AID alias, AID agent)voidnewMTP(MTPDescriptor mtp, ContainerID cid)voidremoveRoute(MTPDescriptor mtp, String sliceName)voidrouteOut(Envelope env, byte[] payload, AID receiverID, String address)voidtransferLocalAliases(AID agent, List aliases)voiduninstallMTP(String address)-
Methods inherited from class jade.core.SliceProxy
getNode, getService, serve, setNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jade.core.Service.Slice
getNode, getService, serve
-
-
-
-
Method Detail
-
dispatchLocally
public void dispatchLocally(AID senderID, GenericMessage msg, AID receiverID) throws IMTPException, NotFoundException, JADESecurityException
- Specified by:
dispatchLocallyin interfaceMessagingSlice- Throws:
IMTPExceptionNotFoundExceptionJADESecurityException
-
routeOut
public void routeOut(Envelope env, byte[] payload, AID receiverID, String address) throws IMTPException, MTPException
- Specified by:
routeOutin interfaceMessagingSlice- Throws:
IMTPExceptionMTPException
-
getAgentLocation
public ContainerID getAgentLocation(AID agentID) throws IMTPException, NotFoundException
- Specified by:
getAgentLocationin interfaceMessagingSlice- Throws:
IMTPExceptionNotFoundException
-
installMTP
public MTPDescriptor installMTP(String address, String className) throws IMTPException, ServiceException, MTPException
- Specified by:
installMTPin interfaceMessagingSlice- Throws:
IMTPExceptionServiceExceptionMTPException
-
uninstallMTP
public void uninstallMTP(String address) throws IMTPException, ServiceException, NotFoundException, MTPException
- Specified by:
uninstallMTPin interfaceMessagingSlice- Throws:
IMTPExceptionServiceExceptionNotFoundExceptionMTPException
-
newMTP
public void newMTP(MTPDescriptor mtp, ContainerID cid) throws IMTPException, ServiceException
- Specified by:
newMTPin interfaceMessagingSlice- Throws:
IMTPExceptionServiceException
-
deadMTP
public void deadMTP(MTPDescriptor mtp, ContainerID cid) throws IMTPException, ServiceException
- Specified by:
deadMTPin interfaceMessagingSlice- Throws:
IMTPExceptionServiceException
-
addRoute
public void addRoute(MTPDescriptor mtp, String sliceName) throws IMTPException, ServiceException
- Specified by:
addRoutein interfaceMessagingSlice- Throws:
IMTPExceptionServiceException
-
removeRoute
public void removeRoute(MTPDescriptor mtp, String sliceName) throws IMTPException, ServiceException
- Specified by:
removeRoutein interfaceMessagingSlice- Throws:
IMTPExceptionServiceException
-
newAlias
public void newAlias(AID alias, AID agent) throws IMTPException
- Specified by:
newAliasin interfaceMessagingSlice- Throws:
IMTPException
-
deadAlias
public void deadAlias(AID alias) throws IMTPException
- Specified by:
deadAliasin interfaceMessagingSlice- Throws:
IMTPException
-
currentAliases
public void currentAliases(Hashtable aliases) throws IMTPException
- Specified by:
currentAliasesin interfaceMessagingSlice- Throws:
IMTPException
-
transferLocalAliases
public void transferLocalAliases(AID agent, List aliases) throws IMTPException
- Specified by:
transferLocalAliasesin interfaceMessagingSlice- Throws:
IMTPException
-
-