/* */ }
/* */ }
/* */
/* */ public JBossStatistics listStatistics()
/* */ {
/* 951 */ ManagedConnectionPoolStatistics subPoolStats = new JBossManagedConnectionPoolStatistics(this.subPools.size());
/* */
/* 953 */ subPoolStats.setBlockingTimeout(this.poolParams.blockingTimeout);
/* 954 */ subPoolStats.setIdleTimeout(this.poolParams.idleTimeout);
/* 955 */ subPoolStats.setMax(this.poolParams.maxSize);
/* 956 */ subPoolStats.setMin(this.poolParams.minSize);
/* 957 */ subPoolStats.setPrefill(this.poolParams.prefill);
/* 958 */ subPoolStats.setNoTxnSeperatePool(this.noTxSeparatePools);
/* */
/* 960 */ for (Iterator iter = this.subPools.values().iterator(); iter.hasNext(); )
/* */ {
/* 962 */ JBossSubPoolStatistics stat = new JBossSubPoolStatistics();
/* 963 */ JBossManagedConnectionPool.SubPoolContext subContext = (JBossManagedConnectionPool.SubPoolContext)iter.next();
/* 964 */ Boolean trackByTxn = subContext.getTrackByTx() != null ? Boolean.TRUE : Boolean.FALSE;
/* 965 */ stat.setTrackByTxn(trackByTxn);
/* 966 */ InternalManagedConnectionPool internalPool = subContext.getSubPool();
/* 967 */ stat.setAvailableConnections(internalPool.getAvailableConnections());
/* 968 */ stat.setConnectionsDestroyed(internalPool.getConnectionDestroyedCount());
/* 969 */ stat.setConnectionsInUse(internalPool.getMaxConnectionsInUseCount());
/* 970 */ stat.setMaxConnectionsInUse(internalPool.getMaxConnectionsInUseCount());
/* 971 */ stat.setTotalBlockTime(internalPool.getTotalBlockTime());
/* 972 */ subPoolStats.addSubPool(stat);
/* */ }
/* */
/* 975 */ return subPoolStats;
/* */ }