public class AsyncSshHandler
extends io.netty.channel.ChannelOutboundHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
static org.apache.sshd.SshClient |
DEFAULT_CLIENT |
static int |
SSH_DEFAULT_NIO_WORKERS |
static String |
SUBSYSTEM |
| Constructor and Description |
|---|
AsyncSshHandler(AuthenticationHandler authenticationHandler,
org.apache.sshd.SshClient sshClient)
Constructor of
AsyncSshHandler. |
AsyncSshHandler(AuthenticationHandler authenticationHandler,
org.apache.sshd.SshClient sshClient,
io.netty.util.concurrent.Future<?> negotiationFuture) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise) |
void |
connect(io.netty.channel.ChannelHandlerContext ctx,
SocketAddress remoteAddress,
SocketAddress localAddress,
io.netty.channel.ChannelPromise promise) |
static AsyncSshHandler |
createForNetconfSubsystem(AuthenticationHandler authenticationHandler) |
static AsyncSshHandler |
createForNetconfSubsystem(AuthenticationHandler authenticationHandler,
io.netty.util.concurrent.Future<?> negotiationFuture)
Create AsyncSshHandler for netconf subsystem.
|
void |
disconnect(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise) |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
bind, deregister, flush, readexceptionCaught, handlerAdded, handlerRemoved, isSharablepublic static final String SUBSYSTEM
public static final int SSH_DEFAULT_NIO_WORKERS
public static final org.apache.sshd.SshClient DEFAULT_CLIENT
public AsyncSshHandler(AuthenticationHandler authenticationHandler, org.apache.sshd.SshClient sshClient, io.netty.util.concurrent.Future<?> negotiationFuture) throws IOException
IOExceptionpublic AsyncSshHandler(AuthenticationHandler authenticationHandler, org.apache.sshd.SshClient sshClient) throws IOException
AsyncSshHandler.authenticationHandler - authentication handlersshClient - started SshClientIOException - if the I/O operation failspublic static AsyncSshHandler createForNetconfSubsystem(AuthenticationHandler authenticationHandler) throws IOException
IOExceptionpublic static AsyncSshHandler createForNetconfSubsystem(AuthenticationHandler authenticationHandler, io.netty.util.concurrent.Future<?> negotiationFuture) throws IOException
authenticationHandler - authentication handlernegotiationFuture - negotiation futureAsyncSshHandlerIOException - if the I/O operation failspublic void write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise)
write in interface io.netty.channel.ChannelOutboundHandlerwrite in class io.netty.channel.ChannelOutboundHandlerAdapterpublic void connect(io.netty.channel.ChannelHandlerContext ctx,
SocketAddress remoteAddress,
SocketAddress localAddress,
io.netty.channel.ChannelPromise promise)
throws Exception
connect in interface io.netty.channel.ChannelOutboundHandlerconnect in class io.netty.channel.ChannelOutboundHandlerAdapterExceptionpublic void close(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise)
throws Exception
close in interface io.netty.channel.ChannelOutboundHandlerclose in class io.netty.channel.ChannelOutboundHandlerAdapterExceptionpublic void disconnect(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelPromise promise)
disconnect in interface io.netty.channel.ChannelOutboundHandlerdisconnect in class io.netty.channel.ChannelOutboundHandlerAdapterCopyright © 2017 OpenDaylight. All rights reserved.