org.globus.cog.abstraction.impl.common.task
Class FileTransferSpecificationImpl

java.lang.Object
  extended byorg.globus.cog.abstraction.impl.common.task.FileTransferSpecificationImpl
All Implemented Interfaces:
FileTransferSpecification, Specification

public class FileTransferSpecificationImpl
extends Object
implements FileTransferSpecification


Field Summary
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.Specification
FILE_OPERATION, FILE_TRANSFER, JOB_SUBMISSION
 
Constructor Summary
FileTransferSpecificationImpl()
           
 
Method Summary
 Enumeration getAllAttributes()
           
 Object getAttribute(String name)
           
 String getDestination()
          Returns the entire source URL string
 String getDestinationDirectory()
          Returns the absolute path name of the directory containing the destination file
 String getDestinationFile()
          Returns the name of the destination file
 String getSource()
          Returns the entire source URL string
 String getSourceDirectory()
          Returns the absolute path name of the directory containing the source file
 String getSourceFile()
          Returns the name of the source file
 String getSpecification()
           
 int getType()
           
 boolean isThirdParty()
          Checks if the transfer is a third party file transfer.
 void setAttribute(String name, Object value)
           
 void setDestination(String destination)
          Sets the entire destination URL string.
 void setDestinationDirectory(String directory)
          Sets the absolute path name of the directory containing the destination file
 void setDestinationFile(String file)
          Sets the name of the destination file
 void setSource(String source)
          Sets the entire source URL string
 void setSourceDirectory(String directory)
          Sets the absolute path name of the directory containing the source file
 void setSourceFile(String file)
          Sets the name of the source file
 void setSpecification(String specification)
           
 void setThirdParty(boolean bool)
          Specifies if this is a third party transfer.
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTransferSpecificationImpl

public FileTransferSpecificationImpl()
Method Detail

setType

public void setType(int type)
Specified by:
setType in interface Specification

getType

public int getType()
Specified by:
getType in interface Specification

setSpecification

public void setSpecification(String specification)
Specified by:
setSpecification in interface Specification

getSpecification

public String getSpecification()
Specified by:
getSpecification in interface Specification

setSourceDirectory

public void setSourceDirectory(String directory)
Description copied from interface: FileTransferSpecification
Sets the absolute path name of the directory containing the source file

Specified by:
setSourceDirectory in interface FileTransferSpecification

getSourceDirectory

public String getSourceDirectory()
Description copied from interface: FileTransferSpecification
Returns the absolute path name of the directory containing the source file

Specified by:
getSourceDirectory in interface FileTransferSpecification

setDestinationDirectory

public void setDestinationDirectory(String directory)
Description copied from interface: FileTransferSpecification
Sets the absolute path name of the directory containing the destination file

Specified by:
setDestinationDirectory in interface FileTransferSpecification

getDestinationDirectory

public String getDestinationDirectory()
Description copied from interface: FileTransferSpecification
Returns the absolute path name of the directory containing the destination file

Specified by:
getDestinationDirectory in interface FileTransferSpecification

setSourceFile

public void setSourceFile(String file)
Description copied from interface: FileTransferSpecification
Sets the name of the source file

Specified by:
setSourceFile in interface FileTransferSpecification

getSourceFile

public String getSourceFile()
Description copied from interface: FileTransferSpecification
Returns the name of the source file

Specified by:
getSourceFile in interface FileTransferSpecification

setDestinationFile

public void setDestinationFile(String file)
Description copied from interface: FileTransferSpecification
Sets the name of the destination file

Specified by:
setDestinationFile in interface FileTransferSpecification

getDestinationFile

public String getDestinationFile()
Description copied from interface: FileTransferSpecification
Returns the name of the destination file

Specified by:
getDestinationFile in interface FileTransferSpecification

setSource

public void setSource(String source)
Description copied from interface: FileTransferSpecification
Sets the entire source URL string

Specified by:
setSource in interface FileTransferSpecification

getSource

public String getSource()
Description copied from interface: FileTransferSpecification
Returns the entire source URL string

Specified by:
getSource in interface FileTransferSpecification

setDestination

public void setDestination(String destination)
Description copied from interface: FileTransferSpecification
Sets the entire destination URL string.

Specified by:
setDestination in interface FileTransferSpecification

getDestination

public String getDestination()
Description copied from interface: FileTransferSpecification
Returns the entire source URL string

Specified by:
getDestination in interface FileTransferSpecification

setThirdParty

public void setThirdParty(boolean bool)
Description copied from interface: FileTransferSpecification
Specifies if this is a third party transfer. For third party transfers, both, the source and dsetination file servers need to be remote servers.

Specified by:
setThirdParty in interface FileTransferSpecification

isThirdParty

public boolean isThirdParty()
Description copied from interface: FileTransferSpecification
Checks if the transfer is a third party file transfer.

Specified by:
isThirdParty in interface FileTransferSpecification

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in interface FileTransferSpecification

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface FileTransferSpecification

getAllAttributes

public Enumeration getAllAttributes()
Specified by:
getAllAttributes in interface FileTransferSpecification