Update of /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/admin/jmx
In directory sc8-pr-cvs1:/tmp/cvs-serv30122
Modified Files:
ConnectionPoolMBean.java
Log Message:
New properties
Index: ConnectionPoolMBean.java
===================================================================
RCS file: /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/admin/jmx/ConnectionPoolMBean.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** ConnectionPoolMBean.java 29 Sep 2003 17:48:08 -0000 1.12
--- ConnectionPoolMBean.java 30 Sep 2003 18:38:27 -0000 1.13
***************
*** 201,204 ****
--- 201,210 ----
resultList.add (new Attribute (attributeNames[i],
getValueOrEmpty(poolDefinition.getHouseKeepingTestSql ())));
+ } else if (equalsProperty(attributeNames[i], ProxoolConstants.TEST_BEFORE_USE)) {
+ resultList.add (new Attribute (attributeNames[i],
+ new Boolean (this.poolDefinition.isTestBeforeUse ())));
+ } else if (equalsProperty(attributeNames[i], ProxoolConstants.TEST_AFTER_USE)) {
+ resultList.add (new Attribute (attributeNames[i],
+ new Boolean (this.poolDefinition.isTestAfterUse ())));
} else if (equalsProperty(attributeNames[i], ProxoolConstants.MAXIMUM_ACTIVE_TIME)) {
resultList.add (new Attribute (attributeNames[i],
***************
*** 312,315 ****
--- 318,329 ----
}
resultList.add (new Attribute (name, value));
+ } else if (equalsProperty(name, ProxoolConstants.TEST_BEFORE_USE)) {
+ checkAssignable (name, Boolean.class, value.getClass ());
+ newProperties.setProperty(ProxoolConstants.TEST_BEFORE_USE_PROPERTY, value.toString());
+ resultList.add (new Attribute (name, value));
+ } else if (equalsProperty(name, ProxoolConstants.TEST_AFTER_USE)) {
+ checkAssignable (name, Boolean.class, value.getClass ());
+ newProperties.setProperty(ProxoolConstants.TEST_AFTER_USE_PROPERTY, value.toString());
+ resultList.add (new Attribute (name, value));
} else if (equalsProperty(name, ProxoolConstants.MAXIMUM_ACTIVE_TIME)) {
setIntegerAttribute(name, ProxoolConstants.MAXIMUM_ACTIVE_TIME_PROPERTY, value,
***************
*** 425,428 ****
--- 439,444 ----
createProxoolAttribute (ProxoolConstants.HOUSE_KEEPING_SLEEP_TIME, Integer.class),
createProxoolAttribute (ProxoolConstants.HOUSE_KEEPING_TEST_SQL, String.class),
+ createProxoolAttribute (ProxoolConstants.TEST_BEFORE_USE, Boolean.class),
+ createProxoolAttribute (ProxoolConstants.TEST_AFTER_USE, Boolean.class),
createProxoolAttribute (ProxoolConstants.MAXIMUM_ACTIVE_TIME, Integer.class),
createProxoolAttribute (ProxoolConstants.MAXIMUM_CONNECTION_COUNT, Integer.class),
***************
*** 682,685 ****
--- 698,704 ----
Revision history:
$Log$
+ Revision 1.13 2003/09/30 18:38:27 billhorsman
+ New properties
+
Revision 1.12 2003/09/29 17:48:08 billhorsman
New fatal-sql-exception-wrapper-class allows you to define what exception is used as a wrapper. This means that you
|