Package jade.core.messaging
Interface MessagingSlice
-
- All Superinterfaces:
Serializable,Serializable,Service.Slice
- All Known Implementing Classes:
MessagingProxy
public interface MessagingSlice extends Service.Slice
The horizontal interface for the JADE kernel-level service managing the message passing subsystem installed in the platform.- Author:
- Giovanni Rimassa - FRAMeTech s.r.l.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEAD_MTPThis command name represents thedead-mtpaction.static StringH_ADDROUTEstatic StringH_CURRENTALIASESstatic StringH_DEADALIASstatic StringH_DEADMTPstatic StringH_DISPATCHLOCALLYstatic StringH_GETAGENTLOCATIONstatic StringH_INSTALLMTPstatic StringH_NEWALIASstatic StringH_NEWMTPstatic StringH_REMOVEROUTEstatic StringH_ROUTEOUTstatic StringH_TRANSFERLOCALALIASESstatic StringH_UNINSTALLMTPstatic StringINSTALL_MTPThis command name represents theinstall-mtpaction.static StringNAMEThe name of this service.static StringNEW_MTPThis command name represents thenew-mtpevent.static StringNOTIFY_FAILUREThis command name represents the action of sending back a FAILURE ACL message to notify the message originator of a failed delivery.static StringSEND_MESSAGEThis command name represents the action of sending an ACL message from an agent to another.static StringSET_PLATFORM_ADDRESSESThis command name represents theset-platform-addressesaction.static StringUNINSTALL_MTPThis command name represents theuninstall-mtpaction.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddRoute(MTPDescriptor mtp, String sliceName)voidcurrentAliases(Hashtable aliases)voiddeadAlias(AID alias)voiddeadMTP(MTPDescriptor mtp, ContainerID cid)voiddispatchLocally(AID senderAID, 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 interface jade.core.Service.Slice
getNode, getService, serve
-
-
-
-
Field Detail
-
NAME
static final String NAME
The name of this service.- See Also:
- Constant Field Values
-
SEND_MESSAGE
static final String SEND_MESSAGE
This command name represents the action of sending an ACL message from an agent to another.- See Also:
- Constant Field Values
-
NOTIFY_FAILURE
static final String NOTIFY_FAILURE
This command name represents the action of sending back a FAILURE ACL message to notify the message originator of a failed delivery.- See Also:
- Constant Field Values
-
INSTALL_MTP
static final String INSTALL_MTP
This command name represents theinstall-mtpaction.- See Also:
- Constant Field Values
-
UNINSTALL_MTP
static final String UNINSTALL_MTP
This command name represents theuninstall-mtpaction.- See Also:
- Constant Field Values
-
NEW_MTP
static final String NEW_MTP
This command name represents thenew-mtpevent.- See Also:
- Constant Field Values
-
DEAD_MTP
static final String DEAD_MTP
This command name represents thedead-mtpaction.- See Also:
- Constant Field Values
-
SET_PLATFORM_ADDRESSES
static final String SET_PLATFORM_ADDRESSES
This command name represents theset-platform-addressesaction.- See Also:
- Constant Field Values
-
H_DISPATCHLOCALLY
static final String H_DISPATCHLOCALLY
- See Also:
- Constant Field Values
-
H_ROUTEOUT
static final String H_ROUTEOUT
- See Also:
- Constant Field Values
-
H_GETAGENTLOCATION
static final String H_GETAGENTLOCATION
- See Also:
- Constant Field Values
-
H_INSTALLMTP
static final String H_INSTALLMTP
- See Also:
- Constant Field Values
-
H_UNINSTALLMTP
static final String H_UNINSTALLMTP
- See Also:
- Constant Field Values
-
H_NEWMTP
static final String H_NEWMTP
- See Also:
- Constant Field Values
-
H_DEADMTP
static final String H_DEADMTP
- See Also:
- Constant Field Values
-
H_ADDROUTE
static final String H_ADDROUTE
- See Also:
- Constant Field Values
-
H_REMOVEROUTE
static final String H_REMOVEROUTE
- See Also:
- Constant Field Values
-
H_NEWALIAS
static final String H_NEWALIAS
- See Also:
- Constant Field Values
-
H_DEADALIAS
static final String H_DEADALIAS
- See Also:
- Constant Field Values
-
H_CURRENTALIASES
static final String H_CURRENTALIASES
- See Also:
- Constant Field Values
-
H_TRANSFERLOCALALIASES
static final String H_TRANSFERLOCALALIASES
- See Also:
- Constant Field Values
-
-
Method Detail
-
dispatchLocally
void dispatchLocally(AID senderAID, GenericMessage msg, AID receiverID) throws IMTPException, NotFoundException, JADESecurityException
-
routeOut
void routeOut(Envelope env, byte[] payload, AID receiverID, String address) throws IMTPException, MTPException
- Throws:
IMTPExceptionMTPException
-
getAgentLocation
ContainerID getAgentLocation(AID agentID) throws IMTPException, NotFoundException
- Throws:
IMTPExceptionNotFoundException
-
installMTP
MTPDescriptor installMTP(String address, String className) throws IMTPException, ServiceException, MTPException
-
uninstallMTP
void uninstallMTP(String address) throws IMTPException, ServiceException, NotFoundException, MTPException
-
newMTP
void newMTP(MTPDescriptor mtp, ContainerID cid) throws IMTPException, ServiceException
- Throws:
IMTPExceptionServiceException
-
deadMTP
void deadMTP(MTPDescriptor mtp, ContainerID cid) throws IMTPException, ServiceException
- Throws:
IMTPExceptionServiceException
-
addRoute
void addRoute(MTPDescriptor mtp, String sliceName) throws IMTPException, ServiceException
- Throws:
IMTPExceptionServiceException
-
removeRoute
void removeRoute(MTPDescriptor mtp, String sliceName) throws IMTPException, ServiceException
- Throws:
IMTPExceptionServiceException
-
newAlias
void newAlias(AID alias, AID agent) throws IMTPException
- Throws:
IMTPException
-
deadAlias
void deadAlias(AID alias) throws IMTPException
- Throws:
IMTPException
-
currentAliases
void currentAliases(Hashtable aliases) throws IMTPException
- Throws:
IMTPException
-
transferLocalAliases
void transferLocalAliases(AID agent, List aliases) throws IMTPException
- Throws:
IMTPException
-
-