Class RemoteNetconfCommand

java.lang.Object
org.opendaylight.netconf.ssh.RemoteNetconfCommand
All Implemented Interfaces:
org.opendaylight.netconf.shaded.sshd.server.command.AsyncCommand, org.opendaylight.netconf.shaded.sshd.server.command.AsyncCommandErrorStreamAware, org.opendaylight.netconf.shaded.sshd.server.command.AsyncCommandInputStreamAware, org.opendaylight.netconf.shaded.sshd.server.command.AsyncCommandOutputStreamAware, org.opendaylight.netconf.shaded.sshd.server.command.AsyncCommandStreamsAware, org.opendaylight.netconf.shaded.sshd.server.command.Command, org.opendaylight.netconf.shaded.sshd.server.command.CommandDirectErrorStreamAware, org.opendaylight.netconf.shaded.sshd.server.command.CommandDirectInputStreamAware, org.opendaylight.netconf.shaded.sshd.server.command.CommandDirectOutputStreamAware, org.opendaylight.netconf.shaded.sshd.server.command.CommandDirectStreamsAware, org.opendaylight.netconf.shaded.sshd.server.command.CommandLifecycle

public class RemoteNetconfCommand extends Object implements org.opendaylight.netconf.shaded.sshd.server.command.AsyncCommand
This command handles all netconf related rpc and forwards to delegate server. Uses netty to make a local connection to delegate server.

Command is Apache Mina SSH terminology for objects handling ssh data.

  • Constructor Details

    • RemoteNetconfCommand

      public RemoteNetconfCommand(io.netty.channel.EventLoopGroup clientEventGroup, io.netty.channel.local.LocalAddress localAddress)
  • Method Details

    • setIoInputStream

      public void setIoInputStream(org.opendaylight.netconf.shaded.sshd.common.io.IoInputStream in)
      Specified by:
      setIoInputStream in interface org.opendaylight.netconf.shaded.sshd.server.command.AsyncCommandInputStreamAware
    • setIoOutputStream

      public void setIoOutputStream(org.opendaylight.netconf.shaded.sshd.common.io.IoOutputStream out)
      Specified by:
      setIoOutputStream in interface org.opendaylight.netconf.shaded.sshd.server.command.AsyncCommandOutputStreamAware
    • setIoErrorStream

      public void setIoErrorStream(org.opendaylight.netconf.shaded.sshd.common.io.IoOutputStream err)
      Specified by:
      setIoErrorStream in interface org.opendaylight.netconf.shaded.sshd.server.command.AsyncCommandErrorStreamAware
    • setInputStream

      public void setInputStream(InputStream in)
      Specified by:
      setInputStream in interface org.opendaylight.netconf.shaded.sshd.server.command.CommandDirectInputStreamAware
    • setOutputStream

      public void setOutputStream(OutputStream out)
      Specified by:
      setOutputStream in interface org.opendaylight.netconf.shaded.sshd.server.command.CommandDirectOutputStreamAware
    • setErrorStream

      public void setErrorStream(OutputStream err)
      Specified by:
      setErrorStream in interface org.opendaylight.netconf.shaded.sshd.server.command.CommandDirectErrorStreamAware
    • setExitCallback

      public void setExitCallback(org.opendaylight.netconf.shaded.sshd.server.ExitCallback callback)
      Specified by:
      setExitCallback in interface org.opendaylight.netconf.shaded.sshd.server.command.Command
    • start

      public void start(org.opendaylight.netconf.shaded.sshd.server.channel.ChannelSession channel, org.opendaylight.netconf.shaded.sshd.server.Environment env)
      Specified by:
      start in interface org.opendaylight.netconf.shaded.sshd.server.command.CommandLifecycle
    • destroy

      public void destroy(org.opendaylight.netconf.shaded.sshd.server.channel.ChannelSession channel)
      Specified by:
      destroy in interface org.opendaylight.netconf.shaded.sshd.server.command.CommandLifecycle