Add AsyncSshHandler.onConnectComplete() 16/102716/2
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 10:01:02 +0000 (12:01 +0200)
commit9b3050377a785f809f71dd6722a596e2fdbc4c65
tree3e5b9769a2cd6bddf0b1047866b102948b448dbd
parent350a98cd443038597784197888d664f7e0dca9f8
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>
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