Package org.jboss.resource.statistic.pool

Examples of org.jboss.resource.statistic.pool.ManagedConnectionPoolStatistics


/*      */       }
/*      */     }
/*      */
/*      */     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;
/*      */     }
View Full Code Here


/*      */   }
/*      */
/*      */   @ManagementOperation(description="Obtain a statistics report", impact=ManagedOperation.Impact.ReadOnly)
/*      */   public Object listStatistics()
/*      */   {
/*  150 */     ManagedConnectionPoolStatistics stats = null;
/*      */
/*  152 */     if ((this.poolingStrategy instanceof StatisticsReporter))
/*      */     {
/*  155 */       StatisticsReporter reporter = (StatisticsReporter)this.poolingStrategy;
/*  156 */       stats = (ManagedConnectionPoolStatistics)reporter.listStatistics();
/*  157 */       stats.setCriteria(getCriteria());
/*  158 */       stats.setName(getManagedConnectionFactoryName().toString());
/*      */     }
/*      */
/*  162 */     return stats;
/*      */   }
View Full Code Here

TOP

Related Classes of org.jboss.resource.statistic.pool.ManagedConnectionPoolStatistics

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.