Add AsyncSshHandler.onConnectComplete() 62/102962/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 08:27:19 +0000 (10:27 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 31 Oct 2022 07:18:43 +0000 (08:18 +0100)
commitda8db5e5aa1f30cbbd6ae411ea464db7b79d1dc2
tree8fea0f127a8fc13fe50851815651207b91c1d785
parent439c258eb1c39a90ab34d0a1d528d9387ebc9210
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)
(cherry picked from commit 71cb1c46c65a764e2c0b7d4d50e3b54709f22fe5)
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