222223224225226227228229230231232
if (conn != null) { try{ Session.logout(conn); } catch (Exception e ) { } conn.dispose(); conn = null; } poolUuid = clu.getGuid(); _clusterDao.update(clusterId, clu);
393394395396397398399400401402403
} finally { try{ Session.localLogout(hostConn); } catch (Exception e ) { } hostConn.dispose(); hostConn = null; } } if (masterIp == null) {
443444445446447448449450451452453
if( slaveSession != null ){ try{ Session.localLogout(slaveConn); } catch (Exception e) { } slaveConn.dispose(); } } return false; }
191192193194195196197198199200201
if (slaveSession != null) { try { Session.logout(slaveConn); } catch (Exception e) { } slaveConn.dispose(); } } try { Thread.sleep(3000); } catch (InterruptedException e) {
264265266267268269270271272273274
Session.logout(masterConn); } catch (Exception e) { s_logger.debug("Unable to log out of session: " + e.getMessage()); } masterConn.dispose(); masterConn = null; } localLogout(slaveConn); slaveConn = null; }
390391392393394395396397398399400
localLogout(slaveConn); slaveConn = null; if(c != null) { try { Session.logout(c); c.dispose(); } catch (Exception e) { } } }
226227228229230231232233234235236
if( sess != null ){ try{ Session.logout(conn); } catch (Exception e) { } conn.dispose(); } if (!hostenabled) { String msg = "Unable to create master connection, due to master Host " + ipAddress + " is not enabled"; s_logger.debug(msg); throw new CloudRuntimeException(msg);
252253254255256257258259260261262
if (conn != null) { try { Session.logout(conn); } catch (Exception e) { } conn.dispose(); conn = null; } poolUuid = clu.getGuid(); _clusterDao.update(clusterId, clu);