uk.org.ogsadai.activity.delivery.wsrf
Class DeliverFromGDTActivity

java.lang.Object
  |
  +--uk.org.ogsadai.engine.Activity
        |
        +--uk.org.ogsadai.activity.delivery.wsrf.AbstractGDTDeliveryActivity
              |
              +--uk.org.ogsadai.activity.delivery.wsrf.DeliverFromGDTActivity

public class DeliverFromGDTActivity
extends AbstractGDTDeliveryActivity

This Activity delivers data from a source into the OGSA-DAI stream via DataTransport operations.

Author:
The OGSA-DAI Project Team

Field Summary
 
Fields inherited from class uk.org.ogsadai.activity.delivery.wsrf.AbstractGDTDeliveryActivity
mBlockMode, mDRKey, mDSEndpoint, mMLSProperty, mStreamId, mTransportPT, mUseMessageLevelSecurity
 
Fields inherited from class uk.org.ogsadai.engine.Activity
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs
 
Constructor Summary
DeliverFromGDTActivity(org.w3c.dom.Element element)
          Activity 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()
          Performs an iteration of the processing of an activity.
 
Methods inherited from class uk.org.ogsadai.activity.delivery.wsrf.AbstractGDTDeliveryActivity
configureService, getGDTDeliverySettings, processFirst
 
Methods inherited from class uk.org.ogsadai.engine.Activity
cleanUp, connectsTo, getActivityConfiguration, getName, getObservableStatus, getProperties, getStatus, hasActivityConfiguration, hasProperties, setCompleted, setError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeliverFromGDTActivity

public DeliverFromGDTActivity(org.w3c.dom.Element element)
                       throws ActivityUserException,
                              ActivitySystemException
Activity 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 AbstractGDTDeliveryActivity
Throws:
ActivityUserException - If a user problem prevents the activity from initialising.

processBlock

public void processBlock()
Description copied from class: Activity
Performs an iteration of the processing of an activity. This may involve reading a block of input data and writing a block of output data, or may involve some other kind of processing. When an activity is processed by the OGSA-DAI engine, this method will be invoked repeatedly until the activity either completes or stops due to an error or termination call. An implementation of this method should invoke the setCompleted method to indicate that processing is complete, or the setError method if an error occurs that will prevent the processing from completing.

Specified by:
processBlock in class AbstractGDTDeliveryActivity
See Also:
This method takes in data block by block from via DataTransport operations and puts it in the stream as separate org.w3c.dom.Element objects