| Modifier and Type | Field and Description |
|---|---|
| protected final Buffer | |
| protected ExitCallback | |
| protected static final Buffer | |
| protected final AtomicBoolean | |
| protected Path | |
| protected Environment | |
| protected CloseableExecutorService | |
| protected final Map | |
| protected int | |
| protected FileSystem | |
| protected final Map | |
| protected int | |
| protected int | |
| protected IoOutputStream | |
| protected Future | |
| protected Random | |
| protected final BlockingQueue | |
| protected final AtomicLong | |
| private final ServerSession | |
| protected Deque | |
| protected int | |
| protected byte[] |
| Access | Constructor and Description |
|---|---|
| public | SftpSubsystem(ChannelSession
The channel, SftpSubsystemConfigurator ChannelSession through which the command was receivedThe configurator)SftpSubsystemConfigurator to use
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| protected void | |
| protected void | createLink(int id, String existingPath, String linkPath, boolean symLink)
Implements abstract org.
|
| public int | data(ChannelSession
The caller to which this channel, byte[] ChannelDataReceiver is assigned. Never null.Holds the bytes received. This buffer belongs to the caller, and it might get reused by the
caller as soon as this method returns. buf, int buf[start] is the first byte that received from the client. start, int the length of the bytes received. Can be zero. len)Implements org. Called when the server receives additional bytes from the client. |
| public void | destroy(ChannelSession
The channel)ChannelSession through which the command has been receivedImplements org. This method is called by the SSH server to destroy the command because the client has disconnected somehow. |
| protected void | doBlock(int id, String handle, long offset, long length, int mask)
Implements abstract org.
|
| protected void | doCheckFileHash(int id, String targetType, String target, Collection<String> algos, long startOffset, long length, int blockSize, Buffer buffer)
Implements abstract org.
|
| protected void | doClose(int id, String handle)
Implements abstract org.
|
| protected void | doCopyData(int id, String readHandle, long readOffset, long readLength, String writeHandle, long writeOffset)
Implements abstract org.
|
| protected void | doFSetStat(int id, String handle, Map<String, ?> attrs)
Implements abstract org.
|
| protected Map | doFStat(int id, String handle, int flags)
Implements abstract org.
|
| protected void | doInit(Buffer buffer, int id)
Implements abstract org.
|
| protected byte[] | doMD5Hash(int id, String targetType, String target, long startOffset, long length, byte[] quickCheckHash)
Implements abstract org.
|
| protected String | |
| protected String | doOpenDir(int id, String path, Path dir, LinkOption... options)
Implements abstract org.
|
| protected void | doOpenSSHFsync(int id, String handle)
Implements abstract org.
|
| protected void | doProcess(Buffer buffer, int length, int type, int id)
Overrides org.
|
| protected int | doRead(int id, String handle, long offset, int length, byte[] data, int doff, AtomicReference<Boolean> eof)
Implements abstract org.
|
| protected void | doReadDir(Buffer buffer, int id)
Implements abstract org.
|
| protected void | doTextSeek(int id, String handle, long line)
Implements abstract org.
|
| protected void | doUnblock(int id, String handle, long offset, long length)
Implements abstract org.
|
| protected void | doVersionSelect(Buffer buffer, int id, String proposed)
Implements abstract org.
|
| protected void | doWrite(int id, String handle, long offset, int length, byte[] data, int doff, int remaining)
Implements abstract org.
|
| protected String | Returns: the file handleto generate a handle for file)Generates a file handle, which is used as key in a |
| public Path | |
| public CloseableExecutorService | |
| public ServerSession | |
| public int | |
| protected void | |
| protected Buffer | prepareReply(Buffer buffer)
Implements abstract org.
|
| protected ChannelDataReceiver | |
| public void | |
| protected void | send(Buffer buffer)
Implements abstract org.
|
| public void | setErrorStream(OutputStream
The err)OutputStream used by the shell to write its errorsImplements org. Set the error stream that can be used by the shell to write its errors. |
| public void | setExitCallback(ExitCallback
The callback)ExitCallback to call when shell is closedImplements org. Set the callback that the shell has to call when it is closed. |
| public void | setFileSystem(FileSystem
the file system fileSystem)Implements org. Set the file system in which this shell will be executed. |
| public void | setInputStream(InputStream
The in)InputStream used by the shell to read input.Implements org. Set the input stream that can be used by the shell to read input. |
| public void | setIoErrorStream(IoOutputStream
The err)IoOutputStream used by the shell to write its errorsImplements org. Set the error stream that can be used by the shell to write its errors. |
| public void | setIoInputStream(IoInputStream
The in)IoInputStream used by the shell to read inputImplements org. Set the input stream that can be used by the shell to read input. |
| public void | setIoOutputStream(IoOutputStream
The out)IoOutputStream used by the shell to write its outputImplements org. Set the output stream that can be used by the shell to write its output. |
| public void | setOutputStream(OutputStream
The out)OutputStream used by the shell to write its outputImplements org. Set the output stream that can be used by the shell to write its output. |
| public void | start(ChannelSession
The channel, Environment ChannelSession through which the command has been receivedThe env)EnvironmentImplements org. Starts the command execution. |