FileSystem
, VfsComponent
public class SftpFileSystem extends AbstractFileSystem implements FileSystem
Modifier | Constructor | Description |
---|---|---|
protected |
SftpFileSystem(GenericFileName rootName,
com.jcraft.jsch.Session session,
FileSystemOptions fileSystemOptions) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
addCapabilities(java.util.Collection caps) |
Adds the capabilities of this file system.
|
protected FileObject |
createFile(FileName 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, hasCapability, init, isOpen, isReleaseable, notifyAllStreamsClosed, putFileToCache, removeFileFromCache, removeJunction, removeListener, replicateFile, resolveFile, resolveFile, setAttribute
getContext, getLogger, setContext, setLogger
addJunction, addListener, getAttribute, getFileSystemManager, getFileSystemOptions, getParentLayer, getRoot, getRootName, 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 java.io.IOException
java.io.IOException
protected void putChannel(com.jcraft.jsch.ChannelSftp channel)
protected void addCapabilities(java.util.Collection caps)
addCapabilities
in class AbstractFileSystem
protected FileObject createFile(FileName name) throws FileSystemException
createFile
in class AbstractFileSystem
FileSystemException
public double getLastModTimeAccuracy()
getLastModTimeAccuracy
in interface FileSystem
getLastModTimeAccuracy
in class AbstractFileSystem