Update of /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31111/src/java-test/org/logicalcobwebs/proxool
Modified Files:
HouseKeeperTest.java ConnectionListenerTest.java
Log Message:
Scrapped onAboutToDie and altered onDeath signature instead. Now includes reasonCode (see ConnectionListenerIF)
Index: HouseKeeperTest.java
===================================================================
RCS file: /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool/HouseKeeperTest.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** HouseKeeperTest.java 25 Jan 2007 00:10:24 -0000 1.14
--- HouseKeeperTest.java 25 Jan 2007 23:38:24 -0000 1.15
***************
*** 330,352 ****
boolean called;
! public void onBirth(Connection connection) throws SQLException {
! //To change body of implemented methods use File | Settings | File Templates.
! }
! public void onDeath(Connection connection) throws SQLException {
! //To change body of implemented methods use File | Settings | File Templates.
}
! public void onExecute(String command, long elapsedTime) {
! //To change body of implemented methods use File | Settings | File Templates.
! }
! public void onFail(String command, Exception exception) {
! //To change body of implemented methods use File | Settings | File Templates.
! }
- public void onAboutToDie(Connection connection, int reason) throws SQLException {
- called = true;
- }
}
}
--- 330,343 ----
boolean called;
! public void onBirth(Connection connection) throws SQLException {}
! public void onDeath(Connection connection, int reasonCode) throws SQLException {
! called = (reasonCode == ConnectionListenerIF.MAXIMUM_ACTIVE_TIME_EXPIRED);
}
! public void onExecute(String command, long elapsedTime) {}
! public void onFail(String command, Exception exception) {}
}
}
***************
*** 355,358 ****
--- 346,352 ----
Revision history:
$Log$
+ Revision 1.15 2007/01/25 23:38:24 billhorsman
+ Scrapped onAboutToDie and altered onDeath signature instead. Now includes reasonCode (see ConnectionListenerIF)
+
Revision 1.14 2007/01/25 00:10:24 billhorsman
New onAboutToDie event for ConnectionListenerIF that gets called if the maximum-active-time is exceeded.
Index: ConnectionListenerTest.java
===================================================================
RCS file: /cvsroot/proxool/proxool/src/java-test/org/logicalcobwebs/proxool/ConnectionListenerTest.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** ConnectionListenerTest.java 25 Jan 2007 00:10:24 -0000 1.16
--- ConnectionListenerTest.java 25 Jan 2007 23:38:24 -0000 1.17
***************
*** 214,218 ****
}
! public void onDeath(Connection connection) throws SQLException {
onDeathCalls++;
}
--- 214,218 ----
}
! public void onDeath(Connection connection, int reasonCode) throws SQLException {
onDeathCalls++;
}
***************
*** 245,248 ****
--- 245,251 ----
Revision history:
$Log$
+ Revision 1.17 2007/01/25 23:38:24 billhorsman
+ Scrapped onAboutToDie and altered onDeath signature instead. Now includes reasonCode (see ConnectionListenerIF)
+
Revision 1.16 2007/01/25 00:10:24 billhorsman
New onAboutToDie event for ConnectionListenerIF that gets called if the maximum-active-time is exceeded.
|