Top Inners Fields Constructors Methods
org.apache.sshd.sftp.client.fs

public Class SftpFileSystem

extends BaseFileSystem<SftpPath>
implements SessionHolder<ClientSession>, ClientSessionHolder
Class Inheritance
All Implemented Interfaces
org.apache.sshd.client.session.ClientSessionHolder, org.apache.sshd.common.session.SessionHolder, org.apache.sshd.common.session.SessionContextHolder
Known Direct Subclasses
org.apache.sshd.sftp.client.fs.SftpFileSystemAutomatic
Imports
java.io.IOException, .InputStream, .OutputStream, .StreamCorruptedException, java.nio.charset.Charset, java.nio.file.FileStore, .FileSystemException, .Path, java.nio.file.attribute.GroupPrincipal, .UserPrincipal, .UserPrincipalLookupService, java.time.Duration, java.util.ArrayList, .Collection, .Collections, .List, .NavigableMap, .NavigableSet, .Objects, .Set, .TreeSet, java.util.concurrent.BlockingQueue, .Executors, .Future, .LinkedBlockingQueue, .RejectedExecutionException, .ScheduledExecutorService, .TimeUnit, java.util.concurrent.atomic.AtomicBoolean, .AtomicReference, org.apache.sshd.client.channel.ClientChannel, org.apache.sshd.client.session.ClientSession, .ClientSessionHolder, org.apache.sshd.common.AttributeRepository.AttributeKey, org.apache.sshd.common.channel.Channel, .ChannelListener, org.apache.sshd.common.file.util.BaseFileSystem, org.apache.sshd.common.session.Session, .SessionHolder, .SessionListener, org.apache.sshd.common.util.GenericUtils, .ValidateUtils, org.apache.sshd.common.util.buffer.Buffer, org.apache.sshd.sftp.SftpModuleProperties, org.apache.sshd.sftp.client.RawSftpClient, .SftpClient, .SftpClientFactory, .SftpErrorDataHandler, .SftpMessage, .SftpVersionSelector, org.apache.sshd.sftp.client.impl.AbstractSftpClient, .SftpPathImpl, org.apache.sshd.sftp.common.SftpConstants

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
protected static class
SftpFileSystem.SftpClientHandle

The SftpClientPool stores SftpClients not directly but via handles in its channel pool.

protected class
private class

Field Summary

Modifier and TypeField and Description
private AtomicReference<ClientSession>
private SftpPath
private final SftpErrorDataHandler
private final SftpClientFactory
private final String
private final AtomicBoolean
public static final AttributeRepository.AttributeKey<Boolean>
OWNED_SESSION

An AttributeKey that can be set to Boolean#TRUE on the ClientSession to tell the SftpFileSystem that it owns that session and should close it when the SftpFileSystem itself is closed.

private SftpFileSystem.SftpClientPool
private int
private final SftpVersionSelector
private final List<FileStore>
private Set<String>
public static final NavigableSet<String>
private int
private int
Inherited from org.apache.sshd.common.file.util.BaseFileSystem:
log

Constructor Summary

AccessConstructor and Description
public
protected

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements abstract java.nio.file.FileSystem.close.

Implements java.io.Closeable.close.

Closes this file system.

protected SftpPath
public SftpClient
public ClientSession
public SftpPath
public List<FileStore>
getFileStores()

Overrides org.apache.sshd.common.file.util.BaseFileSystem.getFileStores.

Returns an object to iterate over the underlying file stores.

public final String
public int
public ClientSession
public SftpErrorDataHandler
public final SftpVersionSelector
public UserPrincipalLookupService
getUserPrincipalLookupService()

Implements abstract java.nio.file.FileSystem.getUserPrincipalLookupService.

Returns the UserPrincipalLookupService for this file system (optional operation).

public final int
public int
protected void
init()

public boolean
isOpen()

Implements abstract java.nio.file.FileSystem.isOpen.

Tells whether or not this file system is open.

public SftpFileSystemProvider
provider()

Overrides org.apache.sshd.common.file.util.BaseFileSystem.provider.

Returns the provider that created this file system.

protected ClientSession
protected void
public void
public void
public Set<String>
supportedFileAttributeViews()

Implements abstract java.nio.file.FileSystem.supportedFileAttributeViews.

Returns the set of the names of the file attribute views supported by this FileSystem.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.apache.sshd.common.file.util.BaseFileSystem:
appendDedupSepcreatecreategetPathgetPathMatchergetRootDirectoriesgetSeparatorglobToRegexhandleWindowsSeparatorhostFsHasWindowsSeparatorisReadOnlynewWatchService