Remove AsyncSshHandler.handleSshSessionCreated() 17/102717/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 08:44:52 +0000 (10:44 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 10:04:07 +0000 (12:04 +0200)
commit811508380706eea604bab58f3725bc9bf64790aa
tree04d3eaf5d76522605b1cac1d8860b01fb4ee8f68
parent9b3050377a785f809f71dd6722a596e2fdbc4c65
Remove AsyncSshHandler.handleSshSessionCreated()

This method is the synchronized part of onConnectComplete(), move it
closer to its source and split out onAuthComplete(). Also switch to
using getException() to check for success/failure.

JIRA: NETCONF-905
Change-Id: Ic8a49491afa92d68cb0585538a3fc9ffb044e9cb
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