1 51 52 package javax.activity; 53 54 import javax.activity.coordination.Action; 55 56 public interface ActivityCoordinator { 57 58 public void addAction( 59 Action action, 60 java.lang.String signalSetName, 61 int priority) 62 throws 63 SignalSetUnknownException , 64 SystemException , 65 java.lang.IllegalStateException ; 66 67 public void addGlobalAction(Action action, int priority) 68 throws SystemException , java.lang.IllegalStateException ; 69 70 public void removeAction(Action action, java.lang.String signalSetName) 71 throws 72 ActionNotFoundException , SystemException , java.lang.IllegalStateException ; 73 74 public void removeGlobalAction(Action action) 75 throws 76 ActionNotFoundException , SystemException , java.lang.IllegalStateException ; 77 78 public int getNumberRegisteredActions(java.lang.String signalSetName) 79 throws SignalSetUnknownException , SystemException ; 80 81 public void setCompletionSignalSetName(java.lang.String signalSetName) 82 throws 83 SignalSetUnknownException , 84 SystemException , 85 java.lang.IllegalStateException ; 86 87 public java.lang.String getCompletionSignalSetName() throws SystemException ; 88 89 public ActivityCoordinator getParent() throws SystemException ; 90 91 public GlobalId getGlobalId() throws SystemException ; 92 93 public int getStatus() throws SystemException ; 94 95 public int getParentStatus() throws SystemException ; 96 97 public java.lang.String getName() throws SystemException ; 98 99 public boolean isSameActivity(ActivityCoordinator coord) 100 throws SystemException ; 101 102 public Action[] getActions(java.lang.String signalSetName) 103 throws SignalSetUnknownException , SystemException ; 104 105 public Outcome completeActivity(int completionStatus) 106 throws 107 ActivityPendingException , 108 ContextPendingException , 109 NotOriginatorException , 110 InvalidStateException , 111 ActivityNotProcessedException , 112 SystemException ; 113 114 public Outcome heuristicComplete(int completionStatus) 115 throws 116 ActivityPendingException , 117 ContextPendingException , 118 InvalidStateException , 119 ActivityNotProcessedException , 120 SystemException ; 121 122 public Outcome processSignalSet( 123 java.lang.String signalSetName, 124 int completionStatus) 125 throws 126 SignalSetUnknownException , 127 ActivityNotProcessedException , 128 InvalidActivityException , 129 SystemException ; 130 } 131 | Popular Tags |