Class RpcShellSession

  • All Implemented Interfaces:
    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

    public class RpcShellSession
    extends ShellSession
    implements org.apache.sshd.server.command.Command
    • Constructor Detail

      • RpcShellSession

        public RpcShellSession​(BaseSshServer sshServer,
                               RpcEngine rpcEngine,
                               org.apache.sshd.server.channel.ChannelSession channel)
    • Method Detail

      • destroy

        public void destroy​(org.apache.sshd.server.channel.ChannelSession channel)
                     throws java.lang.Exception
        Specified by:
        destroy in interface org.apache.sshd.server.command.CommandLifecycle
        Throws:
        java.lang.Exception
      • getSshCommand

        public org.apache.sshd.server.command.Command getSshCommand()
      • setErrorStream

        public void setErrorStream​(java.io.OutputStream err)
        Specified by:
        setErrorStream in interface org.apache.sshd.server.command.CommandDirectErrorStreamAware
        Overrides:
        setErrorStream in class ShellSession
      • setExitCallback

        public void setExitCallback​(org.apache.sshd.server.ExitCallback callback)
        Specified by:
        setExitCallback in interface org.apache.sshd.server.command.Command
      • setInputStream

        public void setInputStream​(java.io.InputStream in)
        Specified by:
        setInputStream in interface org.apache.sshd.server.command.CommandDirectInputStreamAware
        Overrides:
        setInputStream in class ShellSession
      • setOutputStream

        public void setOutputStream​(java.io.OutputStream out)
        Specified by:
        setOutputStream in interface org.apache.sshd.server.command.CommandDirectOutputStreamAware
        Overrides:
        setOutputStream in class ShellSession
      • start

        public void start​(org.apache.sshd.server.channel.ChannelSession channel,
                          org.apache.sshd.server.Environment env)
                   throws java.io.IOException
        Specified by:
        start in interface org.apache.sshd.server.command.CommandLifecycle
        Throws:
        java.io.IOException