Class DefaultSftpSessionFactory.ConcurrentSftpClient
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.client.subsystem.AbstractSubsystemClient
org.apache.sshd.sftp.client.impl.AbstractSftpClient
org.apache.sshd.sftp.client.impl.DefaultSftpClient
org.springframework.integration.sftp.session.DefaultSftpSessionFactory.ConcurrentSftpClient
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,org.apache.sshd.client.channel.ClientChannelHolder,org.apache.sshd.client.session.ClientSessionHolder,org.apache.sshd.client.subsystem.SubsystemClient,org.apache.sshd.common.channel.ChannelHolder,org.apache.sshd.common.NamedResource,org.apache.sshd.common.session.SessionContextHolder,org.apache.sshd.common.session.SessionHolder<org.apache.sshd.client.session.ClientSession>,org.apache.sshd.sftp.client.FullAccessSftpClient,org.apache.sshd.sftp.client.RawSftpClient,org.apache.sshd.sftp.client.SftpClient,org.apache.sshd.sftp.client.SftpErrorDataHandler
- Enclosing class:
DefaultSftpSessionFactory
protected class DefaultSftpSessionFactory.ConcurrentSftpClient
extends org.apache.sshd.sftp.client.impl.DefaultSftpClient
The
DefaultSftpClient extension to lock the DefaultSftpClient.send(int, Buffer)
for concurrent interaction.
Also sets the provided DefaultSftpSessionFactory.timeout as a AbstractSftpClient.SFTP_CLIENT_CMD_TIMEOUT property.
- Since:
- 2.0
- Author:
- Josh Long, Mario Gray, Oleg Zhurakousky, Gunnar Hillert, Gary Russell, David Liu, Pat Turner, Artem Bilan, Krzysztof Debski, Auke Zaaiman, Christian Tzolov, Adama Sorho, Darryl Smith
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sshd.sftp.client.impl.DefaultSftpClient
org.apache.sshd.sftp.client.impl.DefaultSftpClient.SftpChannelSubsystemNested classes/interfaces inherited from interface org.apache.sshd.sftp.client.SftpClient
org.apache.sshd.sftp.client.SftpClient.Attribute, org.apache.sshd.sftp.client.SftpClient.Attributes, org.apache.sshd.sftp.client.SftpClient.CloseableHandle, org.apache.sshd.sftp.client.SftpClient.CopyMode, org.apache.sshd.sftp.client.SftpClient.DirEntry, org.apache.sshd.sftp.client.SftpClient.Handle, org.apache.sshd.sftp.client.SftpClient.OpenMode -
Field Summary
Fields inherited from class org.apache.sshd.sftp.client.impl.AbstractSftpClient
errorDataHandler, INIT_COMMAND_SIZE, SFTP_CLIENT_CMD_TIMEOUTFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
logFields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTORFields inherited from interface org.apache.sshd.sftp.client.SftpClient
DEFAULT_CHANNEL_MODES, EMPTY_DIR_ENTRIES, IO_BUFFER_SIZE, MIN_BUFFER_SIZE, MIN_READ_BUFFER_SIZE, MIN_WRITE_BUFFER_SIZEFields inherited from interface org.apache.sshd.sftp.client.SftpErrorDataHandler
EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConcurrentSftpClient(org.apache.sshd.client.session.ClientSession clientSession, org.apache.sshd.sftp.client.SftpVersionSelector initialVersionSelector, org.apache.sshd.sftp.client.SftpErrorDataHandler errorDataHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.sshd.client.channel.ChannelSubsystemcreateSftpChannelSubsystem(org.apache.sshd.client.session.ClientSession clientSession) org.apache.sshd.sftp.client.SftpMessagewrite(int cmd, org.apache.sshd.common.util.buffer.Buffer buffer) Methods inherited from class org.apache.sshd.sftp.client.impl.DefaultSftpClient
close, data, getClientChannel, getClientSession, getNameDecodingCharset, getServerExtensions, getVersion, handleInitResponse, init, isClosing, isOpen, negotiateVersion, process, receive, receive, receive, receive, send, setNameDecodingCharset, waitForInitResponseMethods inherited from class org.apache.sshd.sftp.client.impl.AbstractSftpClient
canonicalPath, checkAttributes, checkAttributesResponse, checkCommandStatus, checkDataResponse, checkDirResponse, checkHandle, checkHandleResponse, checkOneName, checkOneNameResponse, checkResponseStatus, checkResponseStatus, close, errorData, getChannel, getExtension, getExtension, getParsedServerExtensions, getParsedServerExtensions, getReadBufferSize, getReferencedName, getWriteBufferSize, handleUnexpectedAttributesPacket, handleUnexpectedHandlePacket, handleUnexpectedPacket, handleUnknownDataPacket, handleUnknownDirListingPacket, handleUnknownOneNamePacket, link, listDir, lock, lstat, mkdir, open, openDir, openRemoteFileChannel, put, putReferencedName, read, read, readAttributes, readDir, readDir, readLink, remove, rename, response, rmdir, rpc, setStat, setStat, stat, stat, throwStatusException, unlock, write, write, writeAttributesMethods inherited from class org.apache.sshd.client.subsystem.AbstractSubsystemClient
toStringMethods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContextMethods inherited from interface org.apache.sshd.sftp.client.SftpClient
getExtension, getName, open, open, openRemoteFileChannel, openRemotePathChannel, openRemotePathChannel, put, put, put, put, put, put, put, put, put, put, put, read, read, read, read, read, read, read, read, readDir, readEntries, rename, rename, singleSessionInstance, symLink, write, write, write, write, write, writeMethods inherited from interface org.apache.sshd.client.subsystem.SubsystemClient
getSession
-
Constructor Details
-
ConcurrentSftpClient
protected ConcurrentSftpClient(org.apache.sshd.client.session.ClientSession clientSession, org.apache.sshd.sftp.client.SftpVersionSelector initialVersionSelector, org.apache.sshd.sftp.client.SftpErrorDataHandler errorDataHandler) throws IOException - Throws:
IOException
-
-
Method Details
-
write
public org.apache.sshd.sftp.client.SftpMessage write(int cmd, org.apache.sshd.common.util.buffer.Buffer buffer) throws IOException - Specified by:
writein interfaceorg.apache.sshd.sftp.client.RawSftpClient- Overrides:
writein classorg.apache.sshd.sftp.client.impl.DefaultSftpClient- Throws:
IOException
-
createSftpChannelSubsystem
protected org.apache.sshd.client.channel.ChannelSubsystem createSftpChannelSubsystem(org.apache.sshd.client.session.ClientSession clientSession) - Overrides:
createSftpChannelSubsystemin classorg.apache.sshd.sftp.client.impl.DefaultSftpClient
-