uk.org.ogsadai.activity.delivery
Class InputStreamActivity

java.lang.Object
  |
  +--uk.org.ogsadai.engine.Activity
        |
        +--uk.org.ogsadai.activity.delivery.InputStreamActivity

public class InputStreamActivity
extends Activity

Create a GDT sink (that can then be connected to and data delivered to by a GDT client, such as the DeliverToGDT activity).

Author:
The OGSA-DAI Project Team

Field Summary
 
Fields inherited from class uk.org.ogsadai.engine.Activity
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs
 
Constructor Summary
InputStreamActivity(org.w3c.dom.Element element)
          Constructor
 
Method Summary
 void initialise()
          This method can be overridden by subclasses to perform any initialisation they require before the process method iterations begin.
 void processBlock()
          This method takes in data block by block provided by the GDT interface and puts it in the output stream.
 
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

InputStreamActivity

public InputStreamActivity(org.w3c.dom.Element element)
                    throws ActivityUserException,
                           ActivitySystemException
Constructor

Parameters:
element -
Throws:
ActivityUserException
ActivitySystemException
Method Detail

initialise

public void initialise()
                throws ActivityUserException
Description copied from class: Activity
This method can be overridden by subclasses to perform any initialisation they require before the process method iterations begin. This might be used for setting up convenient fields to reference objects contained in the context. It shouldn't be used for opening resources. That should be done in processFirst.

Overrides:
initialise in class Activity
Throws:
ActivityUserException - If a user problem prevents the activity from initialising.
See Also:
Activity.initialise()

processBlock

public void processBlock()
This method takes in data block by block provided by the GDT interface and puts it in the output stream.

Specified by:
processBlock in class Activity
See Also:
Activity.processBlock()