public class SftpFileSystem extends AbstractFileSystem implements FileSystem
Modifier | Constructor and Description |
---|---|
protected |
SftpFileSystem(GenericFileName rootName,
com.jcraft.jsch.Session session,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCapabilities(Collection<Capability> caps)
Adds the capabilities of this file system.
|
protected FileObject |
createFile(AbstractFileName name)
Creates a file object.
|
protected void |
doCloseCommunicationLink()
Close the underlaying link used to access the files
|
protected com.jcraft.jsch.ChannelSftp |
getChannel()
Returns an SFTP channel to the server.
|
double |
getLastModTimeAccuracy()
last mod time is only a int and in seconds, thus can be off by 999.
|
protected void |
putChannel(com.jcraft.jsch.ChannelSftp channel)
Returns a channel to the pool.
|
addJunction, addListener, close, closeCommunicationLink, decorateFileObject, doReplicateFile, fireFileChanged, fireFileCreated, fireFileDeleted, getAttribute, getFileFromCache, getFileSystemManager, getFileSystemOptions, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
getContext, getLogger, setContext, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addJunction, addListener, getAttribute, getFileSystemManager, getFileSystemOptions, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
protected SftpFileSystem(GenericFileName rootName, com.jcraft.jsch.Session session, FileSystemOptions fileSystemOptions)
protected void doCloseCommunicationLink()
AbstractFileSystem
doCloseCommunicationLink
in class AbstractFileSystem
protected com.jcraft.jsch.ChannelSftp getChannel() throws IOException
IOException
protected void putChannel(com.jcraft.jsch.ChannelSftp channel)
protected void addCapabilities(Collection<Capability> caps)
addCapabilities
in class AbstractFileSystem
protected FileObject createFile(AbstractFileName name) throws FileSystemException
createFile
in class AbstractFileSystem
FileSystemException
public double getLastModTimeAccuracy()
getLastModTimeAccuracy
in interface FileSystem
getLastModTimeAccuracy
in class AbstractFileSystem
Copyright © 2002-2016 The Apache Software Foundation. All Rights Reserved.