Package org.apache.sshd.server.command
Interface AsyncCommand
- All Superinterfaces:
Command
,CommandLifecycle
- All Known Implementing Classes:
SftpSubsystem
Represents a command capable of doing non-blocking io. If this interface is implemented by a command, the usual
blocking input / output / error streams won't be set.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Set the error stream that can be used by the shell to write its errors.void
Set the input stream that can be used by the shell to read input.void
Set the output stream that can be used by the shell to write its output.Methods inherited from interface org.apache.sshd.server.command.Command
setErrorStream, setExitCallback, setInputStream, setOutputStream
Methods inherited from interface org.apache.sshd.server.command.CommandLifecycle
destroy, start
-
Method Details
-
setIoInputStream
Set the input stream that can be used by the shell to read input.- Parameters:
in
- TheIoInputStream
used by the shell to read input
-
setIoOutputStream
Set the output stream that can be used by the shell to write its output.- Parameters:
out
- TheIoOutputStream
used by the shell to write its output
-
setIoErrorStream
Set the error stream that can be used by the shell to write its errors.- Parameters:
err
- TheIoOutputStream
used by the shell to write its errors
-