Package jade.core.messaging
Interface MessagingHelper
-
- All Superinterfaces:
ServiceHelper
public interface MessagingHelper extends ServiceHelper
ServiceHelper provided by the MessagingService to make additional messaging features available to agents
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMessagingHelper.AliasListenerThe interface to be implemented by classes that need to be notified about aliases creation/deletion
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateAlias(String alias)Create a new alias of the agent associated to this helpervoiddeleteAlias(String alias)Delete an alias of the agent associated to this helpervoidderegisterAliasListener(MessagingHelper.AliasListener l)De-register a listener previously registered to be notified about alias creation/deletion.voidregisterAliasListener(MessagingHelper.AliasListener l)Register a listener that will be notified about alias creation/deletion.-
Methods inherited from interface jade.core.ServiceHelper
init
-
-
-
-
Method Detail
-
createAlias
void createAlias(String alias) throws IMTPException, ServiceException
Create a new alias of the agent associated to this helper- Parameters:
alias- The alias to be created- Throws:
IMTPExceptionServiceException
-
deleteAlias
void deleteAlias(String alias) throws IMTPException, ServiceException
Delete an alias of the agent associated to this helper- Parameters:
alias- The alias to be deleted- Throws:
IMTPExceptionServiceException
-
registerAliasListener
void registerAliasListener(MessagingHelper.AliasListener l) throws ServiceException
Register a listener that will be notified about alias creation/deletion. This methods can only be invoked in a Main Container. Invoking that method in a peripheral container results in a ServiceException- Parameters:
l- The listener to be registered- Throws:
ServiceException
-
deregisterAliasListener
void deregisterAliasListener(MessagingHelper.AliasListener l) throws ServiceException
De-register a listener previously registered to be notified about alias creation/deletion. This methods can only be invoked in a Main Container. Invoking that method in a peripheral container results in a ServiceException- Parameters:
l- The listener to be de-registered- Throws:
ServiceException
-
-