public int getTotalConnectionSize() throws SQLException {
        int retTotal = 0;

        Enumeration<String> allDbmsKeys = dbmsPoolTable.keys();
        while (allDbmsKeys.hasMoreElements()) {
            String dbmsPoolKey = allDbmsKeys.nextElement();
            Hashtable<String, DataSource> dsTable = dbmsPoolTable.get(dbmsPoolKey);
            PooledDataSourceProvider provider = this.getProvider(dbmsPoolKey);

            if (dsTable != null) {
                for (DataSource ds : dsTable.values()) {
                    retTotal = retTotal + provider.getAllConnectionNumber(ds);
                }
            }
        }

        return retTotal;
    }
public int getTotalConnectionSize ( ) throws SQLException { int retTotal = 0 ; Enumeration < String > allDbmsKeys = dbmsPoolTable . keys ( ) ; while ( allDbmsKeys . hasMoreElements ( ) ) { String dbmsPoolKey = allDbmsKeys . nextElement ( ) ; Hashtable < String , DataSource > dsTable = dbmsPoolTable . get ( dbmsPoolKey ) ; PooledDataSourceProvider provider = this . getProvider ( dbmsPoolKey ) ; if ( dsTable != null ) { for ( DataSource ds : dsTable . values ( ) ) { retTotal = retTotal + provider . getAllConnectionNumber ( ds ) ; } } } return retTotal ; }
@return all the connections in for all dbms