public Map < String , Integer > openConnections ( ) { Map < String , Integer > map = new HashMap < String , Integer > ( ) ; Iterator < DCStack > it = dcs . values ( ) . iterator ( ) ; // all connections in pool DCStack dcstack ; while ( it . hasNext ( ) ) { dcstack = it . next ( ) ; Integer val = map . get ( dcstack . getDatasource ( ) . getName ( ) ) ; if ( val == null ) val = dcstack . openConnections ( ) ; else val = val . intValue ( ) + dcstack . openConnections ( ) ; map . put ( dcstack . getDatasource ( ) . getName ( ) , val ) ; } return map ; }
do not change interface used by argus monitor