1 18 package org.apache.activemq.management; 19 20 21 26 public class JCAConnectionPoolStatsImpl extends JCAConnectionStatsImpl { 27 private CountStatisticImpl closeCount; 28 private CountStatisticImpl createCount; 29 private BoundedRangeStatisticImpl freePoolSize; 30 private BoundedRangeStatisticImpl poolSize; 31 private RangeStatisticImpl waitingThreadCount; 32 33 public JCAConnectionPoolStatsImpl(String connectionFactory, String managedConnectionFactory, TimeStatisticImpl waitTime, TimeStatisticImpl useTime, CountStatisticImpl closeCount, CountStatisticImpl createCount, BoundedRangeStatisticImpl freePoolSize, BoundedRangeStatisticImpl poolSize, RangeStatisticImpl waitingThreadCount) { 34 super(connectionFactory, managedConnectionFactory, waitTime, useTime); 35 this.closeCount = closeCount; 36 this.createCount = createCount; 37 this.freePoolSize = freePoolSize; 38 this.poolSize = poolSize; 39 this.waitingThreadCount = waitingThreadCount; 40 41 addStatistic("freePoolSize", freePoolSize); 43 addStatistic("poolSize", poolSize); 44 addStatistic("waitingThreadCount", waitingThreadCount); 45 } 46 47 public CountStatisticImpl getCloseCount() { 48 return closeCount; 49 } 50 51 public CountStatisticImpl getCreateCount() { 52 return createCount; 53 } 54 55 public BoundedRangeStatisticImpl getFreePoolSize() { 56 return freePoolSize; 57 } 58 59 public BoundedRangeStatisticImpl getPoolSize() { 60 return poolSize; 61 } 62 63 public RangeStatisticImpl getWaitingThreadCount() { 64 return waitingThreadCount; 65 } 66 67 } 68 | Popular Tags |