|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.org.ogsadai.engine.Activity
|
+--uk.org.ogsadai.activity.files.AbstractFileActivity
|
+--uk.org.ogsadai.activity.files.FileAccessActivity
| Field Summary |
| Fields inherited from class uk.org.ogsadai.activity.files.AbstractFileActivity |
mConnectionManager, mTopDir |
| Fields inherited from class uk.org.ogsadai.engine.Activity |
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs |
| Constructor Summary | |
FileAccessActivity(org.w3c.dom.Element element)
|
|
| Method Summary | |
void |
initialise()
Perform some checks on the connection managers's configuration, including whether the connection manager is a FileSystemConnectionManager and the top-level
directory exists and really is a directory. |
void |
processBlock()
Performs an iteration of the processing of an activity. |
| Methods inherited from class uk.org.ogsadai.engine.Activity |
cleanUp, connectsTo, getActivityConfiguration, getName, getObservableStatus, getProperties, getStatus, hasActivityConfiguration, hasProperties, processFirst, setCompleted, setError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileAccessActivity(org.w3c.dom.Element element)
throws ActivitySystemException,
ActivityUserException
| Method Detail |
public void initialise()
throws ActivityUserException,
ActivitySystemException
AbstractFileActivityFileSystemConnectionManager and the top-level
directory exists and really is a directory. It exposes this directory
in the protected field mTopDir which sub-classes should
use in order to obtain the context within which their file access
may occur.
Sub-classes may override this method if they want to perform
additional initialisation, but should call super.initialise()
to ensure that the checks contained here are executed.
initialise in class AbstractFileActivityActivityUserException - If there is a user problem intialising the activity, like
the top-level directory specified in the connection
configuration does not exist.
ActivitySystemException - If there is a problem intialising the activity, like not
using the FileSystemConnectionManager
connection manager.public void processBlock()
ActivitysetCompleted 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 | ||||||||||