/** * {@inheritDoc} */ @Override() public void releaseDefunctConnection(final LDAPConnection connection) { if (connection == null) { return; } connection.setConnectionPoolName(connectionPoolName); poolStatistics.incrementNumConnectionsClosedDefunct(); handleDefunctConnection(connection); }
/** * {@inheritDoc} */ @Override() public void releaseDefunctConnection(final LDAPConnection connection) { if (connection == null) { return; } connection.setConnectionPoolName(connectionPoolName); poolStatistics.incrementNumConnectionsClosedDefunct(); handleDefunctConnection(connection); }
/** * {@inheritDoc} */ @Override() public void releaseDefunctConnection(final LDAPConnection connection) { if (connection == null) { return; } connection.setConnectionPoolName(connectionPoolName); poolStatistics.incrementNumConnectionsClosedDefunct(); handleDefunctConnection(connection); }
/** * {@inheritDoc} */ @Override() public LDAPConnection replaceDefunctConnection( final LDAPConnection connection) throws LDAPException { poolStatistics.incrementNumConnectionsClosedDefunct(); connection.setDisconnectInfo(DisconnectType.POOLED_CONNECTION_DEFUNCT, null, null); connection.terminate(null); connections.remove(Thread.currentThread(), connection); if (closed) { throw new LDAPException(ResultCode.CONNECT_ERROR, ERR_POOL_CLOSED.get()); } final LDAPConnection newConnection = createConnection(); connections.put(Thread.currentThread(), newConnection); return newConnection; }
poolStatistics.incrementNumConnectionsClosedDefunct(); handleDefunctConnection(conn); continue;
poolStatistics.incrementNumConnectionsClosedDefunct(); handleDefunctConnection(conn); continue;
/** * {@inheritDoc} */ @Override() public LDAPConnection replaceDefunctConnection( final LDAPConnection connection) throws LDAPException { poolStatistics.incrementNumConnectionsClosedDefunct(); connection.setDisconnectInfo(DisconnectType.POOLED_CONNECTION_DEFUNCT, null, null); connection.terminate(null); if (closed) { throw new LDAPException(ResultCode.CONNECT_ERROR, ERR_POOL_CLOSED.get()); } return createConnection(); }
/** * {@inheritDoc} */ @Override() public LDAPConnection replaceDefunctConnection( final LDAPConnection connection) throws LDAPException { poolStatistics.incrementNumConnectionsClosedDefunct(); connection.setDisconnectInfo(DisconnectType.POOLED_CONNECTION_DEFUNCT, null, null); connection.terminate(null); if (closed) { throw new LDAPException(ResultCode.CONNECT_ERROR, ERR_POOL_CLOSED.get()); } return createConnection(); }
poolStatistics.incrementNumConnectionsClosedDefunct(); conn = handleDefunctConnection(conn); if (conn != null) conn.setDisconnectInfo(DisconnectType.POOLED_CONNECTION_DEFUNCT, ERR_POOL_HEALTH_CHECK_CONN_CLOSED.get(), null); poolStatistics.incrementNumConnectionsClosedDefunct(); conn = handleDefunctConnection(conn); if (conn != null) conn.setDisconnectInfo(DisconnectType.POOLED_CONNECTION_DEFUNCT, ERR_POOL_HEALTH_CHECK_CONN_CLOSED.get(), null); poolStatistics.incrementNumConnectionsClosedDefunct(); conn = handleDefunctConnection(conn); if (conn != null) ERR_POOL_HEALTH_CHECK_READ_FAILURE.get( getExceptionMessage(le)), le); poolStatistics.incrementNumConnectionsClosedDefunct(); conn = handleDefunctConnection(conn); if (conn != null) ERR_POOL_HEALTH_CHECK_READ_FAILURE.get(getExceptionMessage(e)), e); poolStatistics.incrementNumConnectionsClosedDefunct(); conn = handleDefunctConnection(conn); if (conn != null) conn.setDisconnectInfo(DisconnectType.POOLED_CONNECTION_DEFUNCT,
poolStatistics.incrementNumConnectionsClosedDefunct(); handleDefunctConnection(conn); for (int i=0; i < numConnections; i++) poolStatistics.incrementNumConnectionsClosedDefunct(); handleDefunctConnection(conn); poolStatistics.incrementNumConnectionsClosedDefunct(); handleDefunctConnection(conn); poolStatistics.incrementNumConnectionsClosedDefunct(); handleDefunctConnection(conn);
poolStatistics.incrementNumConnectionsClosedDefunct(); conn = handleDefunctConnection(conn); if (conn != null) conn.setDisconnectInfo(DisconnectType.POOLED_CONNECTION_DEFUNCT, ERR_POOL_HEALTH_CHECK_CONN_CLOSED.get(), null); poolStatistics.incrementNumConnectionsClosedDefunct(); conn = handleDefunctConnection(conn); if (conn != null) conn.setDisconnectInfo(DisconnectType.POOLED_CONNECTION_DEFUNCT, ERR_POOL_HEALTH_CHECK_CONN_CLOSED.get(), null); poolStatistics.incrementNumConnectionsClosedDefunct(); conn = handleDefunctConnection(conn); if (conn != null) ERR_POOL_HEALTH_CHECK_READ_FAILURE.get( getExceptionMessage(le)), le); poolStatistics.incrementNumConnectionsClosedDefunct(); conn = handleDefunctConnection(conn); if (conn != null) ERR_POOL_HEALTH_CHECK_READ_FAILURE.get(getExceptionMessage(e)), e); poolStatistics.incrementNumConnectionsClosedDefunct(); conn = handleDefunctConnection(conn); if (conn != null) conn.setDisconnectInfo(DisconnectType.POOLED_CONNECTION_DEFUNCT,
poolStatistics.incrementNumConnectionsClosedDefunct(); handleDefunctConnection(conn); for (int i=0; i < numConnections; i++) poolStatistics.incrementNumConnectionsClosedDefunct(); handleDefunctConnection(conn); poolStatistics.incrementNumConnectionsClosedDefunct(); handleDefunctConnection(conn); poolStatistics.incrementNumConnectionsClosedDefunct(); handleDefunctConnection(conn);