javax.activity
Interface ActivityCoordinator

All Known Subinterfaces:
PersistentActivityCoordinator
All Known Implementing Classes:
ActivityImpl

public interface ActivityCoordinator


Method Summary
 void addAction(Action action, java.lang.String signalSetName, int priority)
           
 void addGlobalAction(Action action, int priority)
           
 void associateActivityManager(ActivityManager am)
           
 void associateCurrentThread()
           
 Outcome completeActivity(int completionStatus)
           
 void disassociateCurrentThread()
           
 Action[] getActions(java.lang.String signalSetName)
           
 java.lang.String getCompletionSignalSetName()
           
 GlobalId getGlobalId()
           
 java.lang.String getName()
           
 int getNumberRegisteredActions(java.lang.String signalSetName)
           
 ActivityCoordinator getParent()
           
 int getParentStatus()
           
 int getStatus()
           
 Outcome heuristicComplete(int completionStatus)
           
 boolean isSameActivity(ActivityCoordinator coord)
           
 Outcome processSignalSet(java.lang.String signalSetName, int completionStatus)
           
 void removeAction(Action action, java.lang.String signalSetName)
           
 void removeGlobalAction(Action action)
           
 void setCompletionSignalSetName(java.lang.String signalSetName)
           
 

Method Detail

addAction

public void addAction(Action action,
                      java.lang.String signalSetName,
                      int priority)
               throws SignalSetUnknownException,
                      SystemException,
                      java.lang.IllegalStateException
Throws:
SignalSetUnknownException
SystemException
java.lang.IllegalStateException

addGlobalAction

public void addGlobalAction(Action action,
                            int priority)
                     throws SystemException,
                            java.lang.IllegalStateException
Throws:
SystemException
java.lang.IllegalStateException

removeAction

public void removeAction(Action action,
                         java.lang.String signalSetName)
                  throws ActionNotFoundException,
                         SystemException,
                         java.lang.IllegalStateException
Throws:
ActionNotFoundException
SystemException
java.lang.IllegalStateException

removeGlobalAction

public void removeGlobalAction(Action action)
                        throws ActionNotFoundException,
                               SystemException,
                               java.lang.IllegalStateException
Throws:
ActionNotFoundException
SystemException
java.lang.IllegalStateException

getNumberRegisteredActions

public int getNumberRegisteredActions(java.lang.String signalSetName)
                               throws SignalSetUnknownException,
                                      SystemException
Throws:
SignalSetUnknownException
SystemException

setCompletionSignalSetName

public void setCompletionSignalSetName(java.lang.String signalSetName)
                                throws SignalSetUnknownException,
                                       SystemException,
                                       java.lang.IllegalStateException
Throws:
SignalSetUnknownException
SystemException
java.lang.IllegalStateException

getCompletionSignalSetName

public java.lang.String getCompletionSignalSetName()
                                            throws SystemException
Throws:
SystemException

getParent

public ActivityCoordinator getParent()
                              throws SystemException
Throws:
SystemException

getGlobalId

public GlobalId getGlobalId()
                     throws SystemException
Throws:
SystemException

getStatus

public int getStatus()
              throws SystemException
Throws:
SystemException

getParentStatus

public int getParentStatus()
                    throws SystemException
Throws:
SystemException

getName

public java.lang.String getName()
                         throws SystemException
Throws:
SystemException

isSameActivity

public boolean isSameActivity(ActivityCoordinator coord)
                       throws SystemException
Throws:
SystemException

getActions

public Action[] getActions(java.lang.String signalSetName)
                    throws SignalSetUnknownException,
                           SystemException
Throws:
SignalSetUnknownException
SystemException

completeActivity

public Outcome completeActivity(int completionStatus)
                         throws ActivityPendingException,
                                ContextPendingException,
                                NotOriginatorException,
                                InvalidStateException,
                                ActivityNotProcessedException,
                                SystemException
Throws:
ActivityPendingException
ContextPendingException
NotOriginatorException
InvalidStateException
ActivityNotProcessedException
SystemException

heuristicComplete

public Outcome heuristicComplete(int completionStatus)
                          throws ActivityPendingException,
                                 ContextPendingException,
                                 InvalidStateException,
                                 ActivityNotProcessedException,
                                 SystemException
Throws:
ActivityPendingException
ContextPendingException
InvalidStateException
ActivityNotProcessedException
SystemException

processSignalSet

public Outcome processSignalSet(java.lang.String signalSetName,
                                int completionStatus)
                         throws SignalSetUnknownException,
                                ActivityNotProcessedException,
                                InvalidActivityException,
                                SystemException
Throws:
SignalSetUnknownException
ActivityNotProcessedException
InvalidActivityException
SystemException

associateCurrentThread

public void associateCurrentThread()

disassociateCurrentThread

public void disassociateCurrentThread()

associateActivityManager

public void associateActivityManager(ActivityManager am)