X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fmdsal-netconf-ssh%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fssh%2FSshProxyServer.java;h=e43c2f43d005762dfe294e7653bf8ddfabe35812;hb=effdc431d42558c582b8879a08239c9975980fba;hp=4a5ea777bb3afa96e3768fe6ea2262c60bad7f42;hpb=154913e8c49ebc9997a1247dcc34a7caa39b8997;p=netconf.git diff --git a/netconf/mdsal-netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/SshProxyServer.java b/netconf/mdsal-netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/SshProxyServer.java index 4a5ea777bb..e43c2f43d0 100644 --- a/netconf/mdsal-netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/SshProxyServer.java +++ b/netconf/mdsal-netconf-ssh/src/main/java/org/opendaylight/netconf/ssh/SshProxyServer.java @@ -27,6 +27,7 @@ import org.apache.sshd.common.cipher.Cipher; import org.apache.sshd.common.io.IoAcceptor; import org.apache.sshd.common.io.IoConnector; import org.apache.sshd.common.io.IoHandler; +import org.apache.sshd.common.io.IoServiceEventListener; import org.apache.sshd.common.io.IoServiceFactory; import org.apache.sshd.common.io.IoServiceFactoryFactory; import org.apache.sshd.common.io.nio2.Nio2Acceptor; @@ -113,6 +114,8 @@ public class SshProxyServer implements AutoCloseable { private final FactoryManager manager; private final AsynchronousChannelGroup group; + private IoServiceEventListener eventListener; + AbstractNioServiceFactory(final FactoryManager manager, final AsynchronousChannelGroup group) { this.manager = requireNonNull(manager); this.group = requireNonNull(group); @@ -131,6 +134,16 @@ public class SshProxyServer implements AutoCloseable { public final IoAcceptor createAcceptor(final IoHandler handler) { return new Nio2Acceptor(manager, handler, group); } + + @Override + public final IoServiceEventListener getIoServiceEventListener() { + return eventListener; + } + + @Override + public final void setIoServiceEventListener(final IoServiceEventListener listener) { + eventListener = listener; + } } /**