Commit c48edc11 authored by Patrick Dowler's avatar Patrick Dowler
Browse files

added getPoolStatistics so test code can access stat summary without resorting to debug logging

parent 472beb17
...@@ -13,7 +13,7 @@ repositories { ...@@ -13,7 +13,7 @@ repositories {
sourceCompatibility = 1.7 sourceCompatibility = 1.7
group = 'org.opencadc' group = 'org.opencadc'
version = '1.1.3' version = '1.1.4'
dependencies { dependencies {
compile 'log4j:log4j:1.2.+' compile 'log4j:log4j:1.2.+'
......
...@@ -210,6 +210,13 @@ public class LdapConnectionPool ...@@ -210,6 +210,13 @@ public class LdapConnectionPool
logger.debug(poolName + " pool statistics after release:\n" + pool.getConnectionPoolStatistics()); logger.debug(poolName + " pool statistics after release:\n" + pool.getConnectionPoolStatistics());
} }
} }
public String getPoolStatistics()
{
if (pool != null)
return poolName + " pool statistics: " + pool.getConnectionPoolStatistics();
return null;
}
public LdapConfig getCurrentConfig() public LdapConfig getCurrentConfig()
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment