Add AsyncSshHandler.onConnectComplete() 30/102730/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 08:27:19 +0000 (10:27 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 13:07:15 +0000 (15:07 +0200)
commit71cb1c46c65a764e2c0b7d4d50e3b54709f22fe5
treeb68943f24cbb054ecc92a0a2d53ab4ad2dd86c04
parentd9e1b88bc8862479c83fff0124dc54a33f6e1b3c
Add AsyncSshHandler.onConnectComplete()

Rather than using an anonymous listener, document the lifecycle event,
allowing us to refactor locking and extraction in the future. Also use
getException() to check for success.

JIRA: NETCONF-905
Change-Id: I8569ca007aefad634aff54294b475e565ac4f669
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 9b3050377a785f809f71dd6722a596e2fdbc4c65)
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandler.java
netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandlerTest.java