1 51 52 package javax.activity; 53 54 import javax.activity.coordination.ServiceManager; 55 import javax.activity.propertygroup.PropertyGroup; 56 57 public interface UserActivity { 58 59 public void begin(int timeout) 60 throws InvalidStateException , 61 ServiceNotRegisteredException , 62 TimeoutRangeException , 63 SystemException ; 64 65 public Outcome complete() 66 throws NoActivityException , 67 ActivityPendingException , 68 ContextPendingException , 69 ServiceNotRegisteredException , 70 NotOriginatorException , 71 ActivityNotProcessedException , 72 SystemException ; 73 74 public Outcome completeWithStatus(int completionStatus) 75 throws NoActivityException , 76 ActivityPendingException , 77 ContextPendingException , 78 ServiceNotRegisteredException , 79 NotOriginatorException , 80 InvalidStateException , 81 ActivityNotProcessedException , 82 SystemException ; 83 84 public void setCompletionStatus(int completionStatus) 85 throws NoActivityException , 86 InvalidStateException , 87 ServiceNotRegisteredException , 88 SystemException ; 89 90 public int getCompletionStatus() 91 throws ServiceNotRegisteredException , 92 NoActivityException , 93 SystemException ; 94 95 public int getStatus() 96 throws ServiceNotRegisteredException , 97 SystemException ; 98 99 public java.lang.String getName() 100 throws ServiceNotRegisteredException , 101 SystemException ; 102 103 public void setTimeout(int timeout) 104 throws ServiceNotRegisteredException , 105 TimeoutRangeException , 106 SystemException ; 107 108 public int getTimeout() 109 throws ServiceNotRegisteredException , 110 SystemException ; 111 112 public GlobalId getGlobalId() 113 throws ServiceNotRegisteredException , 114 SystemException ; 115 116 public Outcome broadcast(java.lang.String signalSetName) 117 throws NoActivityException , 118 SignalSetUnknownException , 119 ServiceNotRegisteredException , 120 InvalidActivityException , 121 ActivityNotProcessedException , 122 SystemException ; 123 124 public ActivityCoordinator getCoordinator() 125 throws ServiceNotRegisteredException , 126 NoImplementException , 127 SystemException ; 128 129 public ActivityCoordinator getParentCoordinator() 130 throws ServiceNotRegisteredException , 131 NoImplementException , 132 SystemException ; 133 134 public PropertyGroup getPropertyGroup(java.lang.String name) 135 throws PropertyGroupUnknownException , 136 ServiceNotRegisteredException , 137 NoActivityException , 138 SystemException ; 139 140 public void registerService(ServiceManager service) 141 throws PropertyGroupUnknownException , 142 ServiceAlreadyRegisteredException , 143 SystemException ; 144 145 public ServiceManager getService() 146 throws SystemException ; 147 148 public ActivityCoordinator recreate(GlobalId activity, 149 GlobalId parent, 150 boolean resume) 151 throws ServiceNotRegisteredException , 152 ActivityCompletedException , 153 java.lang.IllegalArgumentException , 154 SystemException ; 155 156 public GlobalId [] recover() 157 throws ServiceNotRegisteredException , 158 SystemException ; 159 160 public void forget(GlobalId globalId) 161 throws ServiceNotRegisteredException , 162 SystemException ; 163 164 } 165 | Popular Tags |