fipaos.platform.df
Class SubscriptionManagerTask
fipaos.agent.task.Task
|
+--fipaos.platform.df.SubscriptionManagerTask
- public class SubscriptionManagerTask
- extends Task
This Task manages SubscriptionHandlerTask's within a DF
Method Summary |
void | DFUpdate(AgentManagementAction ama) Invoked whenever an update to the DF's database has SUCCESSFULLY completed, causing
notification messages to be sent to subscribed Agents |
void | doneSubscriptionHandlerTask(Task t) Invoked when a SubscriptionHandlerTask completes (i.e. |
void | errorSubscriptionHandlerTask(Task t, Throwable th) Invoked when a SubscriptionHandlerTask fails for some reason - this causes
the Task in question to be removed from the list of known SubscriptionHandlerTask's |
void | newSubscriber(Conversation conv) Causes a SubscriptionHandlerTask to be instantiated to deal with the subscription
request from another Agent |
void | startTask() Invoked when the Task starts - doesn't do anything special |
Methods inherited from class fipaos.agent.task.Task |
doneDFSearchTask, errorDFSearchTask, getContext, getState, handleAcceptProposal, handleAgree, handleCfp, handleConfirm, handleDisconfirm, handleFailure, handleInform, handleInformIf, handleInformRef, handleLateMessage, handleNotUnderstood, handlePropagate, handlePropose, handleProxy, handleQueryIf, handleQueryRef, handleRefuse, handleRejectProposal, handleRequest, handleRequestWhen, handleRequestWhenever, handleSubscribe, handleUndeliverableMessage, notify, notifyMessageFailure, notifyMessageForEndedConversation, setContext, timeoutDFSearchTask |
SubscriptionManagerTask
public SubscriptionManagerTask()
- Default constructor
DFUpdate
public void DFUpdate(AgentManagementAction ama)
- Invoked whenever an update to the DF's database has SUCCESSFULLY completed, causing
notification messages to be sent to subscribed Agents
- Parameters:
- ama - The AgentManagementAction associated with the event
doneSubscriptionHandlerTask
public void doneSubscriptionHandlerTask(Task t)
- Invoked when a SubscriptionHandlerTask completes (i.e. the subscription is cancelled).
This causes the Task in question to be removed from the list of known SubscriptionHandlerTask's
- Parameters:
- t - The Task that has finished
errorSubscriptionHandlerTask
public void errorSubscriptionHandlerTask(Task t, Throwable th)
- Invoked when a SubscriptionHandlerTask fails for some reason - this causes
the Task in question to be removed from the list of known SubscriptionHandlerTask's
- Parameters:
- t - Task that has failed
- th - Exception associated with failure
newSubscriber
public void newSubscriber(Conversation conv)
- Causes a SubscriptionHandlerTask to be instantiated to deal with the subscription
request from another Agent
- Parameters:
- conv - Conversation associated with the subscription
startTask
public void startTask()
- Invoked when the Task starts - doesn't do anything special
to Class java.util.List