List of usage examples for javax.management.j2ee.statistics JDBCStats getConnectionPools
JDBCConnectionPoolStats[] getConnectionPools();
From source file:org.hyperic.hq.plugin.websphere.ConnectionPoolCollector.java
public void collect(AdminClient mServer) throws PluginException { JDBCStats stats = (JDBCStats) getStats(mServer, getObjectName()); log.info("[collect] stats=" + ((stats != null) ? "OK" : "KO")); if (stats != null) { JDBCConnectionPoolStats[] pools = stats.getConnectionPools(); log.info("[collect] pools.length=" + pools.length); for (int i = 0; i < pools.length; i++) { JDBCConnectionPoolStats s = pools[i]; log.info("[collect] s=" + s); }/*from w w w . jav a 2 s. c om*/ collectStatCount(pools, ATTRS); setValue("npools", pools.length); } else { setValue("npools", 0); } setAvailability(true); }