/** * Returns the total leased connections. * * @return total leased connections */ public int getTotalLeased() { return this.pool.value.getTotalLeased(); }
public int getTotalLeased() { return this.pool.getTotalLeased(); }
/** * Returns the total leased connections. * * @return total leased connections */ public int getTotalLeased() { return getPool() == null ? 0 : getPool().getTotalLeased(); }
/** * Get a status information of the JDBC connections. * * @return The status information of the JDBC connections. */ public String getConnectionStatus() { String status = "unknown"; if (dataSource instanceof BoneCPDataSource) { BoneCPDataSource bcpDataSource = (BoneCPDataSource) dataSource; BoneCP bcp = bcpDataSource.getPool(); status = "JDBC connections: " + bcp.getTotalLeased() + " in use / " + bcp.getTotalFree() + " in pool / total created " + bcp.getTotalCreatedConnections(); } return status; }