public class SftpFileAdaptor extends FileAdaptor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADAPTOR_DESCRIPTION
A description of this adaptor
|
private static java.lang.String[] |
ADAPTOR_LOCATIONS
The locations supported by this adaptor
|
static java.lang.String |
ADAPTOR_NAME
The name of this adaptor
|
static java.lang.String |
AGENT
Enable the use of an ssh-agent
|
static java.lang.String |
AGENT_FORWARDING
Enable the use of ssh-agent-forwarding
|
static java.lang.String |
AUTOMATICALLY_ADD_HOST_KEY
Enable strict host key checking.
|
static java.lang.String |
BUFFER_SIZE
The buffer size to use when copying data.
|
static java.lang.String |
CONNECTION_TIMEOUT
Property for maximum history length for finished jobs
|
static int |
DEFAULT_PORT
The default SSH port
|
static java.lang.String |
GATEWAY
Add gateway to access machine.
|
static java.lang.String |
LOAD_SSH_CONFIG
Load the OpenSSH config file by default.
|
static java.lang.String |
LOAD_STANDARD_KNOWN_HOSTS
Load the known_hosts file by default.
|
private static org.slf4j.Logger |
LOGGER |
static java.lang.String |
PREFIX
All our own properties start with this prefix.
|
static java.lang.String |
SSH_CONFIG_FILE
OpenSSH config filename.
|
static java.lang.String |
STRICT_HOST_KEY_CHECKING
Enable strict host key checking.
|
private static XenonPropertyDescription[] |
VALID_PROPERTIES
List of properties supported by this SSH adaptor
|
ADAPTORS_PREFIX| Constructor and Description |
|---|
SftpFileAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreateSymboliclinks()
Can this adaptor create symbolic links ?
In third party copy, a file is copied between two remote locations, without passing through the local machine first.
|
FileSystem |
createFileSystem(java.lang.String location,
Credential credential,
java.util.Map<java.lang.String,java.lang.String> properties) |
private java.lang.String |
getCurrentWorkingDirectory(org.apache.sshd.client.subsystem.sftp.SftpClient sftpClient,
java.lang.String location) |
java.lang.Class[] |
getSupportedCredentials()
Get the supported credential types for this adaptor.
|
boolean |
supportsReadingPosixPermissions() |
boolean |
supportsSettingPosixPermissions() |
canAppend, canReadSymboliclinks, isConnectionless, needsSizeBeforehand, supportsRename, supportsThirdPartyCopygetDescription, getName, getNewUniqueID, getSupportedLocations, getSupportedPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getName, getSupportedLocations, getSupportedPropertiesprivate static final org.slf4j.Logger LOGGER
public static final java.lang.String ADAPTOR_NAME
public static final int DEFAULT_PORT
public static final java.lang.String ADAPTOR_DESCRIPTION
public static final java.lang.String PREFIX
public static final java.lang.String STRICT_HOST_KEY_CHECKING
public static final java.lang.String AGENT
public static final java.lang.String AGENT_FORWARDING
public static final java.lang.String LOAD_STANDARD_KNOWN_HOSTS
public static final java.lang.String LOAD_SSH_CONFIG
public static final java.lang.String SSH_CONFIG_FILE
public static final java.lang.String AUTOMATICALLY_ADD_HOST_KEY
public static final java.lang.String GATEWAY
public static final java.lang.String CONNECTION_TIMEOUT
public static final java.lang.String BUFFER_SIZE
private static final java.lang.String[] ADAPTOR_LOCATIONS
private static final XenonPropertyDescription[] VALID_PROPERTIES
public boolean canCreateSymboliclinks()
FileSystemAdaptorDescriptioncanCreateSymboliclinks in interface FileSystemAdaptorDescriptioncanCreateSymboliclinks in class FileAdaptorpublic FileSystem createFileSystem(java.lang.String location, Credential credential, java.util.Map<java.lang.String,java.lang.String> properties) throws XenonException
createFileSystem in class FileAdaptorXenonExceptionprivate java.lang.String getCurrentWorkingDirectory(org.apache.sshd.client.subsystem.sftp.SftpClient sftpClient,
java.lang.String location)
throws XenonException
XenonExceptionpublic boolean supportsReadingPosixPermissions()
supportsReadingPosixPermissions in interface FileSystemAdaptorDescriptionsupportsReadingPosixPermissions in class FileAdaptorpublic boolean supportsSettingPosixPermissions()
supportsSettingPosixPermissions in interface FileSystemAdaptorDescriptionsupportsSettingPosixPermissions in class FileAdaptorpublic java.lang.Class[] getSupportedCredentials()
AdaptorDescription