uk.org.ogsadai.client.toolkit.activity.delivery
Class AbstractDeliverToDTActivity

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.activity.RequestComponent
        |
        +--uk.org.ogsadai.client.toolkit.activity.Activity
              |
              +--uk.org.ogsadai.client.toolkit.activity.delivery.AbstractDeliverToDTActivity
Direct Known Subclasses:
DeliverToDT

public abstract class AbstractDeliverToDTActivity
extends Activity

This activity delivers from to activity within a data transport service from an activity.

It has one input and no output.

Author:
The OGSA-DAI Project Team

Field Summary
protected  DataTransportMode mMode
           
protected  ResourceID mResourceID
           
protected  java.lang.String mStreamID
           
protected  java.net.URL mURL
           
 
Constructor Summary
AbstractDeliverToDTActivity()
          Constructs a request to write data to a data transport service with default data transfer mode as full.
AbstractDeliverToDTActivity(java.net.URL url, DataTransportMode mode, java.lang.String streamID)
          Constructs a request to write data to a data transport service.
 
Method Summary
 void setDataTransportMode(DataTransportMode mode)
          Set the DT transfer mode.
 void setDataTransportOutput(DataTransport service, AbstractInputStreamActivity stream)
          Set up the data transport sink.
 void setDataTransportResourceID(ResourceID id)
          Set the data transport resource ID
 void setDataTransportStreamID(java.lang.String streamID)
          Set the DT stream name.
 void setDataTransportURL(java.net.URL url)
          Set the URL of the data transport service to which data from this activity will be forwarded.
 void setInput(ActivityOutput input)
          Sets the name of the output that will provide the specified input to this activity.
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity
addInput, addOutput, addOutputs, generateXML, getDataResourceID, getDataServiceStub, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setDataServiceStub, setInput
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mURL

protected java.net.URL mURL

mMode

protected DataTransportMode mMode

mStreamID

protected java.lang.String mStreamID

mResourceID

protected ResourceID mResourceID
Constructor Detail

AbstractDeliverToDTActivity

public AbstractDeliverToDTActivity()
Constructs a request to write data to a data transport service with default data transfer mode as full.


AbstractDeliverToDTActivity

public AbstractDeliverToDTActivity(java.net.URL url,
                                   DataTransportMode mode,
                                   java.lang.String streamID)
Constructs a request to write data to a data transport service.

Parameters:
url - data transport URL.
mode - DT data transfer mode.
streamID - DT service activity name accepting data.
Throws:
java.lang.IllegalArgumentException - If url is null. If mode is null. If streamID is null.
Method Detail

setDataTransportOutput

public void setDataTransportOutput(DataTransport service,
                                   AbstractInputStreamActivity stream)
                            throws ServiceCommsException
Set up the data transport sink. This is an input stream activity to which this delivery activity will connect. The input stream activity can be null but in this case the URL, resource ID and stream ID of the data sink must be provided explicitly using the appropriate set methods.

Parameters:
stream - an input stream activity
Throws:
ServiceCommsException - If an error occurs communicating with a service to obtain a URL for the data transport service. This exception will only be thrown by the OGSI implementation.

setDataTransportURL

public void setDataTransportURL(java.net.URL url)
Set the URL of the data transport service to which data from this activity will be forwarded.

Parameters:
url -
Throws:
java.lang.IllegalArgumentException - If url is null.

setDataTransportMode

public void setDataTransportMode(DataTransportMode mode)
Set the DT transfer mode.

Parameters:
mode -
Throws:
java.lang.IllegalArgumentException - If mode is null.

setDataTransportStreamID

public void setDataTransportStreamID(java.lang.String streamID)
Set the DT stream name.

Parameters:
streamID -
Throws:
java.lang.IllegalArgumentException - If streamID is null.

setDataTransportResourceID

public void setDataTransportResourceID(ResourceID id)
Set the data transport resource ID

Parameters:
id - resource ID

setInput

public void setInput(ActivityOutput input)
Sets the name of the output that will provide the specified input to this activity.

Parameters:
input - input from another activity.
Throws:
java.lang.IllegalArgumentException - If the argument is null.