org.globus.cog.abstraction.impl.file.gridftp
Class FileResourceImpl

java.lang.Object
  extended byorg.globus.cog.abstraction.impl.file.gridftp.old.FileResourceImpl
      extended byorg.globus.cog.abstraction.impl.file.gridftp.FileResourceImpl
All Implemented Interfaces:
FileResource, GridResource

public class FileResourceImpl
extends FileResourceImpl


Field Summary
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.FileResource
FTP, GridFTP, Local, WebDAV
 
Fields inherited from interface org.globus.cog.abstraction.interfaces.GridResource
EXECUTION, FILE, INFORMATION
 
Constructor Summary
FileResourceImpl()
           
FileResourceImpl(String name, ServiceContact serviceContact, SecurityContext securityContext)
           
 
Method Summary
 boolean isDirectory(String dirName)
          Is this filename a directory.
 Collection list()
          Equivalent to ls command in the current directory
 Collection list(String directory)
          Equivalent to ls command on the given directory
 void start()
          Create the gridFTPClient and authenticate with the resource.
 
Methods inherited from class org.globus.cog.abstraction.impl.file.gridftp.old.FileResourceImpl
changeMode, changeMode, createDirectory, deleteDirectory, deleteFile, exists, get, get, getAllAttributes, getAttribute, getCurrentDirectory, getDirectory, getFile, getGridFile, getGridFTPClient, getIdentity, getMultipleFiles, getMultipleFiles, getName, getProtocol, getSecurityContext, getServiceContact, getType, isStarted, put, put, putDirectory, putFile, putMultipleFiles, putMultipleFiles, rename, setAttribute, setCurrentDirectory, setIdentity, setName, setSecurityContext, setServiceContact, stop, submit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileResourceImpl

public FileResourceImpl()
                 throws Exception

FileResourceImpl

public FileResourceImpl(String name,
                        ServiceContact serviceContact,
                        SecurityContext securityContext)
Method Detail

start

public void start()
           throws IllegalHostException,
                  InvalidSecurityContextException,
                  GeneralException
Description copied from class: FileResourceImpl
Create the gridFTPClient and authenticate with the resource.

Specified by:
start in interface FileResource
Overrides:
start in class FileResourceImpl
Throws:
IllegalHostException
InvalidSecurityContextException
GeneralException

list

public Collection list()
                throws GeneralException
Description copied from class: FileResourceImpl
Equivalent to ls command in the current directory

Specified by:
list in interface FileResource
Overrides:
list in class FileResourceImpl
Throws:
GeneralException

list

public Collection list(String directory)
                throws DirectoryNotFoundException,
                       GeneralException
Description copied from class: FileResourceImpl
Equivalent to ls command on the given directory

Specified by:
list in interface FileResource
Overrides:
list in class FileResourceImpl
Throws:
DirectoryNotFoundException
GeneralException

isDirectory

public boolean isDirectory(String dirName)
                    throws GeneralException
Description copied from class: FileResourceImpl
Is this filename a directory. works if user has permissions to change to the given directory

Specified by:
isDirectory in interface FileResource
Overrides:
isDirectory in class FileResourceImpl
Throws:
GeneralException