commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwaldh...@apache.org
Subject cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp BasicDataSource.java
Date Wed, 01 May 2002 06:27:52 GMT
rwaldhoff    02/04/30 23:27:52

  Modified:    dbcp/src/java/org/apache/commons/dbcp BasicDataSource.java
  Log:
  use Pool.getNumActive and getNumIdle
  
  Revision  Changes    Path
  1.6       +6 -6      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/BasicDataSource.java
  
  Index: BasicDataSource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/BasicDataSource.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- BasicDataSource.java	30 Apr 2002 18:06:30 -0000	1.5
  +++ BasicDataSource.java	1 May 2002 06:27:52 -0000	1.6
  @@ -1,6 +1,6 @@
  -/** $Header: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/BasicDataSource.java,v
1.5 2002/04/30 18:06:30 craigmcc Exp $
  - * $Revision: 1.5 $
  - * $Date: 2002/04/30 18:06:30 $
  +/** $Header: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/BasicDataSource.java,v
1.6 2002/05/01 06:27:52 rwaldhoff Exp $
  + * $Revision: 1.6 $
  + * $Date: 2002/05/01 06:27:52 $
    *
    * ====================================================================
    *
  @@ -80,7 +80,7 @@
    * but provides a "one stop shopping" solution for basic requirements.</p>
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.5 $ $Date: 2002/04/30 18:06:30 $
  + * @version $Revision: 1.6 $ $Date: 2002/05/01 06:27:52 $
    */
   
   public class BasicDataSource implements DataSource {
  @@ -184,7 +184,7 @@
        */
       public int getNumActive() {
           if (connectionPool != null) {
  -            return (connectionPool.numActive());
  +            return (connectionPool.getNumActive());
           } else {
               return (0);
           }
  @@ -197,7 +197,7 @@
        */
       public int getNumIdle() {
           if (connectionPool != null) {
  -            return (connectionPool.numIdle());
  +            return (connectionPool.getNumIdle());
           } else {
               return (0);
           }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message