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

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.activity.RequestComponent
        |
        +--uk.org.ogsadai.client.toolkit.activity.Activity
              |
              +--uk.org.ogsadai.client.toolkit.activity.delivery.DeliverToGFTP

public class DeliverToGFTP
extends Activity

This activity delivers data from some activity via GridFTP.

It has one input and no output.

Server-side, OGSA-DAI will use the client's GSI credential during the transfer. If no credential is provided then the activity will fail.

Author:
The OGSA-DAI Project Team

Constructor Summary
DeliverToGFTP()
          Constructs a request to deliver data via GridFTP.
DeliverToGFTP(java.lang.String host, int port, java.lang.String file)
          Constructs a request to deliver data via GridFTP.
 
Method Summary
protected  java.lang.String generateXML()
          Generates the XML representing the activity.
 void setFile(java.lang.String file)
          Set the GridFTP file.
 void setHost(java.lang.String host)
          Set the GridFTP host.
 void setInput(ActivityOutput input)
          Sets the name of the output that will provide the specified input to this activity.
 void setPort(int port)
          Set the GridFTP port.
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity
addInput, addOutput, addOutputs, 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
 

Constructor Detail

DeliverToGFTP

public DeliverToGFTP()
Constructs a request to deliver data via GridFTP.


DeliverToGFTP

public DeliverToGFTP(java.lang.String host,
                     int port,
                     java.lang.String file)
Constructs a request to deliver data via GridFTP.

Parameters:
host - GridFTP host name.
port - GridFTP port number.
file - GridFTP file.
Throws:
java.lang.IllegalArgumentException - If host is null. If file is null.
Method Detail

setHost

public void setHost(java.lang.String host)
Set the GridFTP host.

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

setPort

public void setPort(int port)
Set the GridFTP port.

Parameters:
port -

setFile

public void setFile(java.lang.String file)
Set the GridFTP file.

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

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.

generateXML

protected java.lang.String generateXML()
Description copied from class: RequestComponent
Generates the XML representing the activity. This XML can then be inserted into a perform document that is sent to a data service.

Specified by:
generateXML in class Activity
Returns:
the XML for the activity
See Also:
Activity.generateXML()