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

java.lang.Object
  extended byorg.globus.ogsa.impl.base.multirft.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
          Description of the Field
static int STATUS_CANCELLED
          Description of the Field
static int STATUS_EXPANDING
           
static int STATUS_FAILED
          Description of the Field
static int STATUS_FINISHED
          Description of the Field
static int STATUS_PENDING
          Description of the Field
static int STATUS_RETRYING
          Description of the Field
 
Constructor Summary
TransferJob(TransferType transfer, int status, int attempts)
          Constructor for the TransferJob object
 
Method Summary
 int getAttempts()
          Gets the attempts attribute of the TransferJob object
 java.lang.String getDestinationUrl()
          Gets the destinationUrl attribute of the TransferJob object
 org.globus.ogsa.base.multirft.RFTOptionsType getRftOptions()
          Gets the rftOptions attribute of the TransferJob object
 java.lang.String getSourceUrl()
          Gets the sourceUrl attribute of the TransferJob object
 int getStatus()
          Gets the status attribute of the TransferJob object
 TransferType getTransfer()
          Gets the transfer attribute of the TransferJob object
 int getTransferId()
          Gets the transferId attribute of the TransferJob object
 void setAttempts(int attempts)
          Sets the attempts attribute of the TransferJob object
 void setDestinationUrl(java.lang.String destinationUrl)
          Sets the destinationUrl attribute of the TransferJob object
 void setRftOptions(org.globus.ogsa.base.multirft.RFTOptionsType rftOptions)
          Sets the rftOptions attribute of the TransferJob object
 void setSourceUrl(java.lang.String sourceUrl)
          Sets the sourceUrl attribute of the TransferJob object
 void setStatus(int status)
          Sets the status attribute of the TransferJob object
 void setTransfer(TransferType transfer)
          Sets the transfer attribute of the TransferJob object
 void setTransferId(int transferId)
          Sets the transferId attribute of the TransferJob object
static org.w3c.dom.Element toElement(int status)
          Description of the Method
 java.lang.String toString()
          Description of the Method
 
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
Description of the Field

See Also:
Constant Field Values

STATUS_RETRYING

public static final int STATUS_RETRYING
Description of the Field

See Also:
Constant Field Values

STATUS_FAILED

public static final int STATUS_FAILED
Description of the Field

See Also:
Constant Field Values

STATUS_ACTIVE

public static final int STATUS_ACTIVE
Description of the Field

See Also:
Constant Field Values

STATUS_PENDING

public static final int STATUS_PENDING
Description of the Field

See Also:
Constant Field Values

STATUS_CANCELLED

public static final int STATUS_CANCELLED
Description of the Field

See Also:
Constant Field Values

STATUS_EXPANDING

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

TransferJob

public TransferJob(TransferType transfer,
                   int status,
                   int attempts)
Constructor for the TransferJob object

Parameters:
transfer - Description of the Parameter
status - Description of the Parameter
attempts - Description of the Parameter
Method Detail

getTransfer

public TransferType getTransfer()
Gets the transfer attribute of the TransferJob object

Returns:
The transfer value

setTransfer

public void setTransfer(TransferType transfer)
Sets the transfer attribute of the TransferJob object

Parameters:
transfer - The new transfer value

getTransferId

public int getTransferId()
Gets the transferId attribute of the TransferJob object

Returns:
The transferId value

setTransferId

public void setTransferId(int transferId)
Sets the transferId attribute of the TransferJob object

Parameters:
transferId - The new transferId value

getSourceUrl

public java.lang.String getSourceUrl()
Gets the sourceUrl attribute of the TransferJob object

Returns:
The sourceUrl value

setSourceUrl

public void setSourceUrl(java.lang.String sourceUrl)
Sets the sourceUrl attribute of the TransferJob object

Parameters:
sourceUrl - The new sourceUrl value

getDestinationUrl

public java.lang.String getDestinationUrl()
Gets the destinationUrl attribute of the TransferJob object

Returns:
The destinationUrl value

setDestinationUrl

public void setDestinationUrl(java.lang.String destinationUrl)
Sets the destinationUrl attribute of the TransferJob object

Parameters:
destinationUrl - The new destinationUrl value

getStatus

public int getStatus()
Gets the status attribute of the TransferJob object

Returns:
The status value

setStatus

public void setStatus(int status)
Sets the status attribute of the TransferJob object

Parameters:
status - The new status value

getAttempts

public int getAttempts()
Gets the attempts attribute of the TransferJob object

Returns:
The attempts value

setAttempts

public void setAttempts(int attempts)
Sets the attempts attribute of the TransferJob object

Parameters:
attempts - The new attempts value

getRftOptions

public org.globus.ogsa.base.multirft.RFTOptionsType getRftOptions()
Gets the rftOptions attribute of the TransferJob object

Returns:
The rftOptions value

setRftOptions

public void setRftOptions(org.globus.ogsa.base.multirft.RFTOptionsType rftOptions)
Sets the rftOptions attribute of the TransferJob object

Parameters:
rftOptions - The new rftOptions value

toString

public java.lang.String toString()
Description of the Method

Returns:
Description of the Return Value

toElement

public static org.w3c.dom.Element toElement(int status)
Description of the Method

Parameters:
status - Description of the Parameter
Returns:
Description of the Return Value