|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.activity.RequestProcessor
Processes the end-point activities of a request, driving the execution of any chained activities. If there is only one end-point activity, then the execution is performed using the same thread that invokes the process method, otherwise a new thread is spawned to process each end-point activity.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement. |
private java.util.List |
mEndPoints
A list of the end-point activities. |
Constructor Summary | |
(package private) |
RequestProcessor(java.util.List endPoints)
Constructor. |
Method Summary | |
void |
process()
Processes the end-point activity or activities, driving the execution of the request. |
private static void |
processActivity(Activity activity)
Processes the specified activity until it is finished. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private final java.util.List mEndPoints
Constructor Detail |
RequestProcessor(java.util.List endPoints)
endPoints
- List of end point Activity
objects.Method Detail |
public void process()
COMPLETED
,
ERROR
, TERMINATED
) and in certain
error conditions, chained activities may not have
completed. These activities will have to have their error
status set manually.
private static void processActivity(Activity activity)
If a Throwable
should inadvertently occur during
the activity's process
method, catch it, wrap it
in an ActivityExecutionException
and instruct
the activity to save a reference using its
setError
method.
activity
- activity to process.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |