Package org.opendaylight.netconf.ssh
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRemoteNetconfCommand.NetconfCommandFactory
-
Constructor Summary
Constructors Constructor Description RemoteNetconfCommand(io.netty.channel.EventLoopGroup clientEventGroup, io.netty.channel.local.LocalAddress localAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy(org.opendaylight.netconf.shaded.sshd.server.channel.ChannelSession channel)voidsetErrorStream(OutputStream err)voidsetExitCallback(org.opendaylight.netconf.shaded.sshd.server.ExitCallback callback)voidsetInputStream(InputStream in)voidsetIoErrorStream(org.opendaylight.netconf.shaded.sshd.common.io.IoOutputStream err)voidsetIoInputStream(org.opendaylight.netconf.shaded.sshd.common.io.IoInputStream in)voidsetIoOutputStream(org.opendaylight.netconf.shaded.sshd.common.io.IoOutputStream out)voidsetOutputStream(OutputStream out)voidstart(org.opendaylight.netconf.shaded.sshd.server.channel.ChannelSession channel, org.opendaylight.netconf.shaded.sshd.server.Environment env)
-
-
-
Method Detail
-
setIoInputStream
public void setIoInputStream(org.opendaylight.netconf.shaded.sshd.common.io.IoInputStream in)
- Specified by:
setIoInputStreamin interfaceorg.opendaylight.netconf.shaded.sshd.server.command.AsyncCommandInputStreamAware
-
setIoOutputStream
public void setIoOutputStream(org.opendaylight.netconf.shaded.sshd.common.io.IoOutputStream out)
- Specified by:
setIoOutputStreamin interfaceorg.opendaylight.netconf.shaded.sshd.server.command.AsyncCommandOutputStreamAware
-
setIoErrorStream
public void setIoErrorStream(org.opendaylight.netconf.shaded.sshd.common.io.IoOutputStream err)
- Specified by:
setIoErrorStreamin interfaceorg.opendaylight.netconf.shaded.sshd.server.command.AsyncCommandErrorStreamAware
-
setInputStream
public void setInputStream(InputStream in)
- Specified by:
setInputStreamin interfaceorg.opendaylight.netconf.shaded.sshd.server.command.CommandDirectInputStreamAware
-
setOutputStream
public void setOutputStream(OutputStream out)
- Specified by:
setOutputStreamin interfaceorg.opendaylight.netconf.shaded.sshd.server.command.CommandDirectOutputStreamAware
-
setErrorStream
public void setErrorStream(OutputStream err)
- Specified by:
setErrorStreamin interfaceorg.opendaylight.netconf.shaded.sshd.server.command.CommandDirectErrorStreamAware
-
setExitCallback
public void setExitCallback(org.opendaylight.netconf.shaded.sshd.server.ExitCallback callback)
- Specified by:
setExitCallbackin interfaceorg.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:
startin interfaceorg.opendaylight.netconf.shaded.sshd.server.command.CommandLifecycle
-
destroy
public void destroy(org.opendaylight.netconf.shaded.sshd.server.channel.ChannelSession channel)
- Specified by:
destroyin interfaceorg.opendaylight.netconf.shaded.sshd.server.command.CommandLifecycle
-
-