Author: vhalbert(a)redhat.com
Date: 2009-05-17 21:44:34 -0400 (Sun, 17 May 2009)
New Revision: 966
Modified:
trunk/common-internal/src/main/java/com/metamatrix/common/stats/ConnectionPoolStats.java
Log:
Teiid-580 - adding support for monitoring connector connection pools - added attribute to
distinquish between an XA connection pool and a non-xa, because there will be 2 pools when
the XA pool is being used.
Modified:
trunk/common-internal/src/main/java/com/metamatrix/common/stats/ConnectionPoolStats.java
===================================================================
---
trunk/common-internal/src/main/java/com/metamatrix/common/stats/ConnectionPoolStats.java 2009-05-18
01:43:02 UTC (rev 965)
+++
trunk/common-internal/src/main/java/com/metamatrix/common/stats/ConnectionPoolStats.java 2009-05-18
01:44:34 UTC (rev 966)
@@ -48,11 +48,11 @@
/**
* Total number of connections that have been destroyed since the inception of the pool
*/
- private int connectionsDestroyed;
+ private long connectionsDestroyed;
/**
* Total number of connections that have been created since the inception of the pool
*/
- private int connectionsCreated;
+ private long connectionsCreated;
/**
* Constructor for ConnectionPoolStats
@@ -63,8 +63,12 @@
}
public boolean isXAPoolType() {
- return (this.poolType==1?true:false);
+ return (this.poolType==XA_POOL_TYPE?true:false);
}
+
+ public int getPoolType() {
+ return this.poolType;
+ }
public String getConnectorBindingName() {
return connectorBindingName;
@@ -115,11 +119,11 @@
this.totalConnections = totalConnections;
}
- public void setConnectionsDestroyed(int connectionsDestroyed) {
+ public void setConnectionsDestroyed(long connectionsDestroyed) {
this.connectionsDestroyed = connectionsDestroyed;
}
- public void setConnectionsCreated(int connectionsCreated) {
+ public void setConnectionsCreated(long connectionsCreated) {
this.connectionsCreated = connectionsCreated;
}
Show replies by date