public class DelayedSftpSubsystem
extends org.apache.sshd.server.subsystem.sftp.SftpSubsystem
SftpSubsystem with a configurable delay time. Processing of each command halts for this amount of time.callback, DEFAULT_FILE_HANDLE_ROUNDS, DEFAULT_FILE_HANDLE_SIZE, DEFAULT_MAX_OPEN_HANDLES, DEFAULT_MAX_READDIR_DATA_SIZE, defaultDir, env, err, executors, extensions, FILE_HANDLE_SIZE, fileHandleSize, fileSystem, handles, in, 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, requestsCount, shutdownExecutor, version, workBufACL_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 and Description |
|---|
DelayedSftpSubsystem(ExecutorService executorService,
boolean shutdownOnExit,
org.apache.sshd.server.subsystem.sftp.UnsupportedAttributePolicy policy) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
process(org.apache.sshd.common.util.buffer.Buffer buffer) |
static void |
setDelay(int delayMillis) |
createLink, destroy, doBlock, doCheckFileHash, doClose, doCopyData, doFSetStat, doFStat, doInit, doMD5Hash, doOpen, doOpenDir, doOpenSSHFsync, doRead, doReadDir, doTextSeek, doUnblock, doVersionSelect, doWrite, executeExtendedCommand, generateFileHandle, getDefaultDirectory, getServerSession, getVersion, run, send, setErrorStream, setExitCallback, setFileSystem, setInputStream, setOutputStream, setSession, startaddMissingAttribute, 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, doWrite, 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, toGroup, toUser, validateHandle, validateProposedVersion, validateRealPath, writeAttrs, writeDirEntrypublic DelayedSftpSubsystem(ExecutorService executorService, boolean shutdownOnExit, org.apache.sshd.server.subsystem.sftp.UnsupportedAttributePolicy policy)
public static void setDelay(int delayMillis)
protected void process(org.apache.sshd.common.util.buffer.Buffer buffer)
throws IOException
process in class org.apache.sshd.server.subsystem.sftp.SftpSubsystemIOExceptionCopyright © 2017–2020. All rights reserved.