1 18 package org.apache.activemq.management; 19 20 21 26 public class JCAConnectionStatsImpl extends StatsImpl { 27 private String connectionFactory; 28 private String managedConnectionFactory; 29 private TimeStatisticImpl waitTime; 30 private TimeStatisticImpl useTime; 31 32 public JCAConnectionStatsImpl(String connectionFactory, String managedConnectionFactory, TimeStatisticImpl waitTime, TimeStatisticImpl useTime) { 33 this.connectionFactory = connectionFactory; 34 this.managedConnectionFactory = managedConnectionFactory; 35 this.waitTime = waitTime; 36 this.useTime = useTime; 37 38 addStatistic("waitTime", waitTime); 40 addStatistic("useTime", useTime); 41 } 42 43 public String getConnectionFactory() { 44 return connectionFactory; 45 } 46 47 public String getManagedConnectionFactory() { 48 return managedConnectionFactory; 49 } 50 51 public TimeStatisticImpl getWaitTime() { 52 return waitTime; 53 } 54 55 public TimeStatisticImpl getUseTime() { 56 return useTime; 57 } 58 59 } 60 | Popular Tags |