|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.activity.Activity | +--uk.org.ogsadai.activity.ObserverActivity
This is a special kind of activity used internally for observing the status of an activity that is driven by an external output. The activity will complete processing only when the activity that it has been observing reaches a finished state.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE Copyright statement |
private static DAILogger |
LOG Logger object for logging in this class |
private boolean |
mWaiting Indicates whether we need to wait for the activity to finish. |
Fields inherited from class uk.org.ogsadai.activity.Activity |
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs |
Constructor Summary | |
(package private) |
ObserverActivity(Activity activity) Constructs an ObserverActivity that will observe the status of another activity. |
Method Summary | |
void |
processBlock() Performs an iteration of the processing of an activity. |
Methods inherited from class uk.org.ogsadai.activity.Activity |
cleanUp, configureContext, connectsTo, createOutputPipe, getActivityConfiguration, getActivityName, getAllOutputs, getCause, getExternalInputs, getExternalOutputs, getInputs, getName, getObservableStatus, getOutputs, getProperties, getSession, getStatus, hasActivityConfiguration, hasProperties, initialise, process, processFirst, setActivityConfiguration, setActivityName, setCompleted, setError, setProperties, terminate |
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 static final DAILogger LOG
private boolean mWaiting
Constructor Detail |
ObserverActivity(Activity activity)
ObserverActivity
that will observe the status of another activity. This activity should be one that is driven by an external output.
activity
- An Activity
that is driven by an external output.Method Detail |
public void processBlock()
Activity
setCompleted
method to indicate that processing is complete, or the setError
method if an error occurs that will prevent the processing from completing.
processBlock
in class Activity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |