org.globus.ogsa.impl.base.reliabletransfer
Class TransferJob

java.lang.Object
  extended byorg.globus.ogsa.impl.base.reliabletransfer.TransferJob

public class TransferJob
extends java.lang.Object

This class defines a transfer request which is sent to the reliable transfer server from the control client. It is also used when the control client requests a listing of currently executing transfers.


Field Summary
static int STATUS_ACTIVE
           
static int STATUS_CANCELLED
           
static int STATUS_FAILED
           
static int STATUS_FINISHED
           
static int STATUS_PENDING
           
static int STATUS_RETRYING
           
 
Constructor Summary
TransferJob()
          This base constructor is empty and only exists for the JavaBeans framework.
TransferJob(int transferJobID, java.lang.String fromURL, java.lang.String toURL, boolean DCAU, int status, int attempts, int parallelStreams, int tcpBufferSize)
          This constructor creates a new transfer request object for use by the control client and reliable transfer server.
TransferJob(int transferJobID, java.lang.String fromURL, java.lang.String toURL, int status, int attempts, ReliableTransferOptions options)
           
 
Method Summary
 int getAttempts()
           
 boolean getDCAU()
          Get the DCAU Option
 java.lang.String getFromURL()
          Get the URL to transfer from.
 int getParallelStreams()
           
 int getStatus()
           
 int getTCPBufferSize()
           
 java.lang.String getToURL()
          Get the URL to transfer to.
 int getTransferJobID()
           
 void setAttempts(int attempts)
           
 void setDCAU(boolean DCAU)
          Set the DCAU option to
 void setFromURL(java.lang.String fromURL)
          Set the URL to transfer from.
 void setParallelStreams(int parallelStreams)
           
 void setStatus(int status)
           
 void setTCPBufferSize(int tcpBufferSize)
           
 void setToURL(java.lang.String toURL)
          Set the URL to transfer to.
 void setTransferJobID(int transferJobID)
           
static org.w3c.dom.Element toElement(int status)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATUS_FINISHED

public static final int STATUS_FINISHED
See Also:
Constant Field Values

STATUS_RETRYING

public static final int STATUS_RETRYING
See Also:
Constant Field Values

STATUS_FAILED

public static final int STATUS_FAILED
See Also:
Constant Field Values

STATUS_ACTIVE

public static final int STATUS_ACTIVE
See Also:
Constant Field Values

STATUS_PENDING

public static final int STATUS_PENDING
See Also:
Constant Field Values

STATUS_CANCELLED

public static final int STATUS_CANCELLED
See Also:
Constant Field Values
Constructor Detail

TransferJob

public TransferJob()
This base constructor is empty and only exists for the JavaBeans framework.


TransferJob

public TransferJob(int transferJobID,
                   java.lang.String fromURL,
                   java.lang.String toURL,
                   boolean DCAU,
                   int status,
                   int attempts,
                   int parallelStreams,
                   int tcpBufferSize)
This constructor creates a new transfer request object for use by the control client and reliable transfer server.


TransferJob

public TransferJob(int transferJobID,
                   java.lang.String fromURL,
                   java.lang.String toURL,
                   int status,
                   int attempts,
                   ReliableTransferOptions options)
Method Detail

getTransferJobID

public int getTransferJobID()

setTransferJobID

public void setTransferJobID(int transferJobID)

setFromURL

public void setFromURL(java.lang.String fromURL)
Set the URL to transfer from.


getFromURL

public java.lang.String getFromURL()
Get the URL to transfer from.

Returns:
String The URL to transfer from

setToURL

public void setToURL(java.lang.String toURL)
Set the URL to transfer to.


getToURL

public java.lang.String getToURL()
Get the URL to transfer to.

Returns:
String The URL to transfer to

setDCAU

public void setDCAU(boolean DCAU)
Set the DCAU option to


getDCAU

public boolean getDCAU()
Get the DCAU Option

Returns:
boolean DCAU The DCAU option

getStatus

public int getStatus()

setStatus

public void setStatus(int status)

getAttempts

public int getAttempts()

setAttempts

public void setAttempts(int attempts)

setTCPBufferSize

public void setTCPBufferSize(int tcpBufferSize)

getTCPBufferSize

public int getTCPBufferSize()

setParallelStreams

public void setParallelStreams(int parallelStreams)

getParallelStreams

public int getParallelStreams()

toString

public java.lang.String toString()

toElement

public static org.w3c.dom.Element toElement(int status)