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 -
Constructor Summary
ConstructorsConstructorDescriptionRemoteNetconfCommand(io.netty.channel.EventLoopGroup clientEventGroup, io.netty.channel.local.LocalAddress localAddress) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(org.opendaylight.netconf.shaded.sshd.server.channel.ChannelSession channel) voidvoidsetExitCallback(org.opendaylight.netconf.shaded.sshd.server.ExitCallback callback) voidvoidsetIoErrorStream(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) voidvoidstart(org.opendaylight.netconf.shaded.sshd.server.channel.ChannelSession channel, org.opendaylight.netconf.shaded.sshd.server.Environment env)
-
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:
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
- Specified by:
setInputStreamin interfaceorg.opendaylight.netconf.shaded.sshd.server.command.CommandDirectInputStreamAware
-
setOutputStream
- Specified by:
setOutputStreamin interfaceorg.opendaylight.netconf.shaded.sshd.server.command.CommandDirectOutputStreamAware
-
setErrorStream
- 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
-