ADK CVS

tryllian.afc.task.interaction
Class CancelTask

java.lang.Object
  extended bytryllian.afc.task.AbstractTask
      extended bytryllian.afc.task.DefaultTask
          extended bytryllian.afc.task.interaction.SendAndReceiveTask
              extended bytryllian.afc.task.interaction.CancelTask
All Implemented Interfaces:
java.util.EventListener, MessageHandler, java.io.Serializable, Task

public class CancelTask
extends SendAndReceiveTask

Task that sends a cancel and waits for the answer.

Succeeds If an agree reply is received in the same conversation.
Fails In one of the following situations:

  1. If the request could not be sent.
  2. If a timeout occurs.
  3. If anything but an agree is received in the same conversation.

Since:
2.2
See Also:
Serialized Form

Field Summary
 
Fields inherited from class tryllian.afc.task.AbstractTask
NL
 
Fields inherited from interface tryllian.afc.task.Task
EMPTY_FINISH_VALUE, FORCED_FINISH_FAILURE, NO_TIME_OUT, TASK_TIMED_OUT
 
Constructor Summary
CancelTask()
          Default constructor.
CancelTask(AddressURI subscriptionProvider, java.lang.String subject)
          Constructor specifying both the cancellation subject and provider.
CancelTask(AddressURI subscriptionProvider, java.lang.String subject, java.lang.String[] arguments)
           
CancelTask(java.lang.String subject)
          Constructor specifying the cancellation subject only.
 
Method Summary
 void setSubscriptionProvider(AddressURI subscriptionProvider)
          et the subscription provider address.
 
Methods inherited from class tryllian.afc.task.interaction.SendAndReceiveTask
getArguments, getConversation, getLanguage, getReceivePerformative, getReceiver, getResult, getSendPerformative, getSubject, handleMessage, processResult, setArguments, setLanguage, setReceivePerformative, setReceiver, setSendPerformative, setSubject
 
Methods inherited from class tryllian.afc.task.DefaultTask
addFinishingTask, addTask, getSubtasks, handleHeartbeat, propagateHeartbeat
 
Methods inherited from class tryllian.afc.task.AbstractTask
addTaskListener, fail, fail, finish, finish, finish, forceFinish, forceFinish, getAgentContext, getFinishValue, getState, getSupertask, getTimeOut, heartbeatReceived, logException, messageReceived, removeTaskListener, setAgentContext, setFinishValue, setTimeOut, succeed, succeed, taskAdded, taskEnded, taskRemoved, taskStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancelTask

public CancelTask()
Default constructor. Subject and subscription provider should be set before starting.


CancelTask

public CancelTask(java.lang.String subject)
Constructor specifying the cancellation subject only. The receiver (the subscription provider) should be set before starting.


CancelTask

public CancelTask(AddressURI subscriptionProvider,
                  java.lang.String subject)
Constructor specifying both the cancellation subject and provider.


CancelTask

public CancelTask(AddressURI subscriptionProvider,
                  java.lang.String subject,
                  java.lang.String[] arguments)
Method Detail

setSubscriptionProvider

public void setSubscriptionProvider(AddressURI subscriptionProvider)
et the subscription provider address.


Copyright 2005, Tryllian Solutions B.V.