Class Command
java.lang.Object
com.chutneytesting.action.ssh.sshd.Command
- All Implemented Interfaces:
Runnable,org.apache.sshd.server.command.Command,org.apache.sshd.server.command.CommandDirectErrorStreamAware,org.apache.sshd.server.command.CommandDirectInputStreamAware,org.apache.sshd.server.command.CommandDirectOutputStreamAware,org.apache.sshd.server.command.CommandDirectStreamsAware,org.apache.sshd.server.command.CommandLifecycle,org.apache.sshd.server.session.ServerSessionAware
-
Constructor Summary
ConstructorsConstructorDescriptionCommand(SshServerMock sshServerMock) Command(SshServerMock sshServerMock, String command) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(org.apache.sshd.server.channel.ChannelSession channel) voidrun()voidvoidsetExitCallback(org.apache.sshd.server.ExitCallback callback) voidvoidvoidsetSession(org.apache.sshd.server.session.ServerSession session) voidstart(org.apache.sshd.server.channel.ChannelSession channel, org.apache.sshd.server.Environment env)
-
Constructor Details
-
Command
-
Command
-
-
Method Details
-
setInputStream
- Specified by:
setInputStreamin interfaceorg.apache.sshd.server.command.CommandDirectInputStreamAware
-
setOutputStream
- Specified by:
setOutputStreamin interfaceorg.apache.sshd.server.command.CommandDirectOutputStreamAware
-
setErrorStream
- Specified by:
setErrorStreamin interfaceorg.apache.sshd.server.command.CommandDirectErrorStreamAware
-
setExitCallback
public void setExitCallback(org.apache.sshd.server.ExitCallback callback) - Specified by:
setExitCallbackin interfaceorg.apache.sshd.server.command.Command
-
start
public void start(org.apache.sshd.server.channel.ChannelSession channel, org.apache.sshd.server.Environment env) throws IOException - Specified by:
startin interfaceorg.apache.sshd.server.command.CommandLifecycle- Throws:
IOException
-
destroy
- Specified by:
destroyin interfaceorg.apache.sshd.server.command.CommandLifecycle- Throws:
Exception
-
setSession
public void setSession(org.apache.sshd.server.session.ServerSession session) - Specified by:
setSessionin interfaceorg.apache.sshd.server.session.ServerSessionAware
-
run
public void run()
-