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, setAttributegetContext, getLogger, setContext, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddJunction, addListener, getAttribute, getFileSystemManager, getFileSystemOptions, getParentLayer, getRoot, getRootName, getRootURI, hasCapability, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttributeprotected SftpFileSystem(GenericFileName rootName, com.jcraft.jsch.Session session, FileSystemOptions fileSystemOptions)
protected void doCloseCommunicationLink()
AbstractFileSystemdoCloseCommunicationLink in class AbstractFileSystemprotected com.jcraft.jsch.ChannelSftp getChannel()
throws IOException
IOExceptionprotected void putChannel(com.jcraft.jsch.ChannelSftp channel)
protected void addCapabilities(Collection<Capability> caps)
addCapabilities in class AbstractFileSystemprotected FileObject createFile(AbstractFileName name) throws FileSystemException
createFile in class AbstractFileSystemFileSystemExceptionpublic double getLastModTimeAccuracy()
getLastModTimeAccuracy in interface FileSystemgetLastModTimeAccuracy in class AbstractFileSystemCopyright © 2002–2018 WSO2. All rights reserved.