org.globus.cog.gridface.interfaces
Interface FileTransferObject

All Superinterfaces:
ConnectionObject
All Known Implementing Classes:
FileTransferObjectImpl

public interface FileTransferObject
extends ConnectionObject


Method Summary
 void execute(GridCommand command, boolean backGround)
           
 GridCommand exists(URI uri)
          Check if file or directory specified by the URI exists
 GridCommand getCurrentDirectory()
          Get Current Directory
 GridCommand getDir(URI uriRemote, URI uriLocal)
          Get a Dir.
 GridCommand getFile(URI uriRemote, URI uriLocal)
          Get a file.
 GridCommand getProperties(URI uri)
          Retrieve file properties
 Identity getSessionId()
           
 GridCommand isDirectory(URI uri)
          Is the URI a directory?
 GridCommand ls()
          List all files for current directory
 GridCommand ls(URI uri)
          List all files of specified directory
 GridCommand makeDirectory(URI uri)
          Make directory
 GridCommand putDir(URI uriLocal, URI uriRemote)
          Put a Dir.
 GridCommand putFile(URI uriLocal, URI uriRemote)
          Put a file.
 GridCommand rmdir(URI uri)
          Remove directory pointed to URI from host
 GridCommand rmfile(URI uri)
          Remove file pointed by URI from host
 GridCommand setCurrentDirectory(URI uri)
          Set Current Directory
 void setPassword(String password)
           
 GridCommand setProperties(URI uri)
          Set properties of the file pointed by URI
 void setSessionId(Identity identity)
           
 void setUsername(String username)
           
 GridCommand size(URI uri)
          Get size of the file specified by URI
 GridCommand thirdPartyCopyFile(URI uriSource, URI uriDestination)
           
 
Methods inherited from interface org.globus.cog.gridface.interfaces.ConnectionObject
close, connect, disConnect, getHost, getPort, getProtocol, getProxy, getSecurityContext, reConnect, setHost, setPort, setProtocol, setProxy, setSecurityContext
 

Method Detail

execute

public void execute(GridCommand command,
                    boolean backGround)
             throws Exception
Throws:
Exception

setUsername

public void setUsername(String username)
Specified by:
setUsername in interface ConnectionObject

setPassword

public void setPassword(String password)
Specified by:
setPassword in interface ConnectionObject

getProperties

public GridCommand getProperties(URI uri)
Retrieve file properties


setProperties

public GridCommand setProperties(URI uri)
Set properties of the file pointed by URI


setSessionId

public void setSessionId(Identity identity)
Specified by:
setSessionId in interface ConnectionObject

getSessionId

public Identity getSessionId()
Specified by:
getSessionId in interface ConnectionObject

thirdPartyCopyFile

public GridCommand thirdPartyCopyFile(URI uriSource,
                                      URI uriDestination)

getFile

public GridCommand getFile(URI uriRemote,
                           URI uriLocal)
Get a file. Called through paste *

Throws:
Exception

putFile

public GridCommand putFile(URI uriLocal,
                           URI uriRemote)
Put a file. Called through copy *

Throws:
Exception

getDir

public GridCommand getDir(URI uriRemote,
                          URI uriLocal)
Get a Dir. Called through paste


putDir

public GridCommand putDir(URI uriLocal,
                          URI uriRemote)
Put a Dir. Called through copy


rmfile

public GridCommand rmfile(URI uri)
Remove file pointed by URI from host


rmdir

public GridCommand rmdir(URI uri)
Remove directory pointed to URI from host


setCurrentDirectory

public GridCommand setCurrentDirectory(URI uri)
Set Current Directory


getCurrentDirectory

public GridCommand getCurrentDirectory()
Get Current Directory


makeDirectory

public GridCommand makeDirectory(URI uri)
Make directory


ls

public GridCommand ls()
List all files for current directory


ls

public GridCommand ls(URI uri)
List all files of specified directory


exists

public GridCommand exists(URI uri)
Check if file or directory specified by the URI exists


size

public GridCommand size(URI uri)
Get size of the file specified by URI


isDirectory

public GridCommand isDirectory(URI uri)
Is the URI a directory?