agave-systems/systems-core/src/main/java/org/iplantc/service/transfer/sftp/MaverickSFTP.java
/**
     * Close all connections, log warnings for exceptions
     *
     * @param sshClient
     * @param forwardedConnection
     * @param sock
     */
Close all connections, log warnings for exceptions
@param sshClient
@param forwardedConnection
@param sock
Close all connections log warnings for exceptions @param sshClient @param forwardedConnection @param sock
public void closeConnections(SshClient sshClient, SshClient forwardedConnection,
                                        SshSession sshSession, Socket sock)
    {
        if (sshClient != null) try { sshClient.disconnect(); }
        catch (Throwable t) {
            String msg = "sshClient disconnect failure.";
            log.warn(msg, t);
        }
        if (forwardedConnection != null) try { forwardedConnection.disconnect(); }
        catch (Throwable t) {
            String msg = "forwardedConnection disconnect failure.";
            log.warn(msg, t);
        }
        if (sshSession != null) try { sshSession.close(); }
        catch (Throwable t) {
            String msg = "sshSession close failure.";
            log.warn(msg, t);
        }
        if (sock != null) try { sock.close(); }
        catch (Throwable t) {
            String msg = "socket close failure.";
            log.warn(msg, t);
        }
    }
public void closeConnections ( SshClient sshClient , SshClient forwardedConnection , SshSession sshSession , Socket sock ) { if ( sshClient != null ) try { sshClient . disconnect ( ) ; } catch ( Throwable t ) { String msg = "sshClient disconnect failure." ; log . warn ( msg , t ) ; } if ( forwardedConnection != null ) try { forwardedConnection . disconnect ( ) ; } catch ( Throwable t ) { String msg = "forwardedConnection disconnect failure." ; log . warn ( msg , t ) ; } if ( sshSession != null ) try { sshSession . close ( ) ; } catch ( Throwable t ) { String msg = "sshSession close failure." ; log . warn ( msg , t ) ; } if ( sock != null ) try { sock . close ( ) ; } catch ( Throwable t ) { String msg = "socket close failure." ; log . warn ( msg , t ) ; } }
Close all connections, log warnings for exceptions
 @param sshClient
 @param forwardedConnection
 @param sock
Close all connections log warnings for exceptions @param sshClient @param forwardedConnection @param sock