Package org.dhatim.dropwizard.sshd
Class ThrottledSftpSubsystem
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.server.subsystem.sftp.AbstractSftpSubsystemHelper
org.apache.sshd.server.subsystem.sftp.SftpSubsystem
org.dhatim.dropwizard.sshd.ThrottledSftpSubsystem
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Runnable
,org.apache.sshd.common.file.FileSystemAware
,org.apache.sshd.common.util.threads.ExecutorServiceCarrier
,org.apache.sshd.server.channel.ChannelDataReceiver
,org.apache.sshd.server.ChannelSessionAware
,org.apache.sshd.server.command.AsyncCommand
,org.apache.sshd.server.command.Command
,org.apache.sshd.server.command.CommandLifecycle
,org.apache.sshd.server.session.ServerSessionHolder
,org.apache.sshd.server.SessionAware
,org.apache.sshd.server.subsystem.sftp.SftpEventListenerManager
,org.apache.sshd.server.subsystem.sftp.SftpSubsystemEnvironment
public class ThrottledSftpSubsystem
extends org.apache.sshd.server.subsystem.sftp.SftpSubsystem
-
Field Summary
Fields inherited from class org.apache.sshd.server.subsystem.sftp.SftpSubsystem
buffer, callback, channelSession, CLOSE, closed, DEFAULT_FILE_HANDLE_ROUNDS, DEFAULT_FILE_HANDLE_SIZE, DEFAULT_MAX_OPEN_HANDLES, DEFAULT_MAX_READDIR_DATA_SIZE, defaultDir, env, err, executorService, extensions, FILE_HANDLE_SIZE, fileHandleSize, fileSystem, handles, MAX_FILE_HANDLE_RAND_ROUNDS, MAX_FILE_HANDLE_ROUNDS, MAX_FILE_HANDLE_SIZE, MAX_OPEN_HANDLES_PER_SESSION, MAX_READDIR_DATA_SIZE_PROP, maxFileHandleRounds, MIN_FILE_HANDLE_ROUNDS, MIN_FILE_HANDLE_SIZE, out, pendingFuture, randomizer, requests, requestsCount, serverSession, version, workBuf
Fields inherited from class org.apache.sshd.server.subsystem.sftp.AbstractSftpSubsystemHelper
ACL_SUPPORTED_MASK_PROP, AUTO_FOLLOW_LINKS, CLIENT_EXTENSIONS_PROP, DEFAULT_ACL_SUPPORTED_MASK, DEFAULT_AUTO_FOLLOW_LINKS, DEFAULT_MAX_READDATA_PACKET_LENGTH, DEFAULT_OPEN_SSH_EXTENSIONS, DEFAULT_OPEN_SSH_EXTENSIONS_NAMES, DEFAULT_SUPPORTED_CLIENT_EXTENSIONS, MAX_READDATA_PACKET_LENGTH_PROP, NEWLINE_VALUE, OPENSSH_EXTENSIONS_PROP
-
Constructor Summary
Constructors Constructor Description ThrottledSftpSubsystem(org.apache.sshd.common.util.threads.CloseableExecutorService executorService, org.apache.sshd.server.subsystem.sftp.UnsupportedAttributePolicy policy, org.apache.sshd.server.subsystem.sftp.SftpFileSystemAccessor accessor, org.apache.sshd.server.subsystem.sftp.SftpErrorStatusDataHandler errorStatusDataHandler, int capacity)
-
Method Summary
Methods inherited from class org.apache.sshd.server.subsystem.sftp.SftpSubsystem
close, closeAllHandles, createLink, destroy, doBlock, doCheckFileHash, doClose, doCopyData, doFSetStat, doFStat, doInit, doMD5Hash, doOpen, doOpenDir, doOpenSSHFsync, doProcess, doRead, doReadDir, doTextSeek, doUnblock, doVersionSelect, doWrite, generateFileHandle, getDefaultDirectory, getExecutorService, getServerSession, getVersion, prepareReply, run, send, setChannelSession, setErrorStream, setExitCallback, setFileSystem, setInputStream, setIoErrorStream, setIoInputStream, setIoOutputStream, setOutputStream, setSession, start
Methods inherited from class org.apache.sshd.server.subsystem.sftp.AbstractSftpSubsystemHelper
addMissingAttribute, addSftpEventListener, appendAclSupportedExtension, appendExtensions, appendNewlineExtension, appendOpenSSHExtensions, appendSupported2Extension, appendSupportedExtension, appendVendorIdExtension, appendVersionsExtension, checkVersionCompatibility, doBlock, doCheckFileHash, doCheckFileHash, doClose, doCopyData, doCopyFile, doCopyFile, doCopyFile, doExtended, doFSetStat, doFStat, doLink, doLink, doLStat, doLStat, doMakeDirectory, doMakeDirectory, doMD5Hash, doMD5Hash, doOpen, doOpenDir, doOpenSSHFsync, doOpenSSHHardLink, doOpenSSHHardLink, doRead, doReadDir, doReadLink, doReadLink, doRealPath, doRealPathV345, doRealPathV6, doRemove, doRemove, doRemove, doRemoveDirectory, doRemoveDirectory, doRename, doRename, doRename, doSetAttributes, doSetStat, doSetStat, doSpaceAvailable, doSpaceAvailable, doStat, doStat, doSymLink, doSymLink, doTextSeek, doUnblock, doUnsupported, doUnsupportedExtension, doVersionSelect, doWrite, executeExtendedCommand, getAttributes, getAttributes, getErrorStatusDataHandler, getFileSystemAccessor, getLongName, getLongName, getLongName, getPathResolutionLinkOption, getSftpEventListenerProxy, getShortName, getSupportedClientExtensions, getUnsupportedAttributePolicy, handleReadFileAttributesException, handleSetFileAttributeFailure, handleUnknownStatusFileAttributes, handleUnsupportedAttributes, handleUserPrincipalLookupServiceException, normalize, readAttrs, readFileAttributes, removeSftpEventListener, resolveAclSupportedCapabilities, resolveFile, resolveFileAttributes, resolveMissingFileAttributes, resolveMissingFileAttributeValue, resolveNewlineValue, resolveNormalizedLocation, resolveOpenSSHExtensions, sendAttrs, sendHandle, sendLink, sendPath, sendStatus, sendStatus, sendStatus, setFileAccessControl, setFileAttribute, setFileAttributes, setFileExtensions, setFileOwnership, setFilePermissions, setFileTime, signalOpenFailure, signalRemovalPreConditionFailure, toGroup, toUser, validateHandle, validateProposedVersion, validateRealPath, writeAttrs, writeDirEntry
-
Constructor Details
-
ThrottledSftpSubsystem
public ThrottledSftpSubsystem(org.apache.sshd.common.util.threads.CloseableExecutorService executorService, org.apache.sshd.server.subsystem.sftp.UnsupportedAttributePolicy policy, org.apache.sshd.server.subsystem.sftp.SftpFileSystemAccessor accessor, org.apache.sshd.server.subsystem.sftp.SftpErrorStatusDataHandler errorStatusDataHandler, int capacity)
-
-
Method Details
-
data
public int data(org.apache.sshd.server.channel.ChannelSession channel, byte[] buf, int start, int len) throws java.io.IOException- Specified by:
data
in interfaceorg.apache.sshd.server.channel.ChannelDataReceiver
- Overrides:
data
in classorg.apache.sshd.server.subsystem.sftp.SftpSubsystem
- Throws:
java.io.IOException
-
process
protected void process(org.apache.sshd.common.util.buffer.Buffer buffer) throws java.io.IOException- Overrides:
process
in classorg.apache.sshd.server.subsystem.sftp.AbstractSftpSubsystemHelper
- Throws:
java.io.IOException
-