public class SftpFileSystem extends BaseFileSystem<SftpPath>
| Modifier and Type | Class and Description |
|---|---|
static class |
SftpFileSystem.DefaultGroupPrincipal |
static class |
SftpFileSystem.DefaultUserPrincipal |
static class |
SftpFileSystem.DefaultUserPrincipalLookupService |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_POOL_SIZE |
static String |
POOL_SIZE_PROP |
static Set<String> |
SUPPORTED_VIEWS |
| Constructor and Description |
|---|
SftpFileSystem(SftpFileSystemProvider provider,
String id,
ClientSession session,
SftpVersionSelector selector) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected SftpPath |
create(String root,
ImmutableList<String> names) |
SftpClient |
getClient() |
SftpPath |
getDefaultDir() |
List<FileStore> |
getFileStores() |
String |
getId() |
int |
getReadBufferSize() |
ClientSession |
getSession() |
SftpVersionSelector |
getSftpVersionSelector() |
UserPrincipalLookupService |
getUserPrincipalLookupService() |
int |
getWriteBufferSize() |
boolean |
isOpen() |
SftpFileSystemProvider |
provider() |
void |
setReadBufferSize(int size) |
void |
setWriteBufferSize(int size) |
Set<String> |
supportedFileAttributeViews() |
appendDedupSep, create, create, getPath, getPathMatcher, getRootDirectories, getSeparator, globToRegex, isReadOnly, newWatchServicepublic static final String POOL_SIZE_PROP
public static final int DEFAULT_POOL_SIZE
public SftpFileSystem(SftpFileSystemProvider provider, String id, ClientSession session, SftpVersionSelector selector) throws IOException
IOExceptionpublic final SftpVersionSelector getSftpVersionSelector()
public final String getId()
public SftpFileSystemProvider provider()
provider in class BaseFileSystem<SftpPath>public List<FileStore> getFileStores()
getFileStores in class BaseFileSystem<SftpPath>public int getReadBufferSize()
public void setReadBufferSize(int size)
public int getWriteBufferSize()
public void setWriteBufferSize(int size)
protected SftpPath create(String root, ImmutableList<String> names)
create in class BaseFileSystem<SftpPath>public ClientSession getSession()
public SftpClient getClient() throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FileSystemIOExceptionpublic boolean isOpen()
isOpen in class FileSystempublic Set<String> supportedFileAttributeViews()
supportedFileAttributeViews in class FileSystempublic UserPrincipalLookupService getUserPrincipalLookupService()
getUserPrincipalLookupService in class FileSystempublic SftpPath getDefaultDir()
getDefaultDir in class BaseFileSystem<SftpPath>Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.