org.icenigrid.gridsam.core.plugin.vfs.gsiftp
Class GSIFTPFileSystem

java.lang.Object
  extended by org.apache.commons.vfs.provider.AbstractVfsComponent
      extended by org.apache.commons.vfs.provider.AbstractFileSystem
          extended by org.icenigrid.gridsam.core.plugin.vfs.gsiftp.GSIFTPFileSystem
All Implemented Interfaces:
org.apache.commons.vfs.FileSystem, org.apache.commons.vfs.provider.VfsComponent

public class GSIFTPFileSystem
extends org.apache.commons.vfs.provider.AbstractFileSystem

A GSIFTP file system


Constructor Summary
protected GSIFTPFileSystem(org.apache.commons.vfs.FileName pRootName, org.apache.commons.vfs.FileSystemOptions pOptions)
          default constructor
 
Method Summary
protected  void addCapabilities(java.util.Collection caps)
          Adds the capabilities of this file system.
protected  org.apache.commons.vfs.FileObject createFile(org.apache.commons.vfs.FileName name)
          Creates a file object.
protected  void doCloseCommunicationLink()
          Close the underlaying link used to access the files
protected  org.globus.ftp.GridFTPClient getFileClient()
          get File Client
protected  org.globus.cog.abstraction.interfaces.FileResource getFileResource()
          get File Resource
 
Methods inherited from class org.apache.commons.vfs.provider.AbstractFileSystem
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getLastModTimeAccuracy, getParentLayer, getRoot, getRootName, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
 
Methods inherited from class org.apache.commons.vfs.provider.AbstractVfsComponent
getContext, getLogger, setContext, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSIFTPFileSystem

protected GSIFTPFileSystem(org.apache.commons.vfs.FileName pRootName,
                           org.apache.commons.vfs.FileSystemOptions pOptions)
                    throws org.apache.commons.vfs.FileSystemException
default constructor

Parameters:
pRootName - the root system name
pOptions - any file system options
Throws:
org.apache.commons.vfs.FileSystemException
Method Detail

createFile

protected org.apache.commons.vfs.FileObject createFile(org.apache.commons.vfs.FileName name)
                                                throws java.lang.Exception
Creates a file object. This method is called only if the requested file is not cached.

Specified by:
createFile in class org.apache.commons.vfs.provider.AbstractFileSystem
Throws:
java.lang.Exception

addCapabilities

protected void addCapabilities(java.util.Collection caps)
Adds the capabilities of this file system.

Specified by:
addCapabilities in class org.apache.commons.vfs.provider.AbstractFileSystem

getFileResource

protected org.globus.cog.abstraction.interfaces.FileResource getFileResource()
get File Resource

Returns:
FileResource

getFileClient

protected org.globus.ftp.GridFTPClient getFileClient()
                                              throws org.apache.commons.vfs.FileSystemException
get File Client

Returns:
GridFTPClient
Throws:
org.apache.commons.vfs.FileSystemException

doCloseCommunicationLink

protected void doCloseCommunicationLink()
Close the underlaying link used to access the files

Overrides:
doCloseCommunicationLink in class org.apache.commons.vfs.provider.AbstractFileSystem


Copyright © 2008. All Rights Reserved.