1 23 24 26 27 package com.sun.enterprise.management.monitor; 28 29 import com.sun.appserv.management.base.XTypes; 30 31 import com.sun.appserv.management.monitor.JDBCConnectionPoolMonitor; 32 33 import com.sun.enterprise.management.support.Delegate; 34 35 import com.sun.appserv.management.monitor.statistics.AltJDBCConnectionPoolStats; 36 import com.sun.appserv.management.util.jmx.AttributeNameMapper; 37 38 public class JDBCConnectionPoolMonitorImpl 39 extends MonitoringStatsImplBase 40 { 42 public JDBCConnectionPoolMonitorImpl(Delegate delegate) 43 { 44 super( XTypes.JDBC_CONNECTION_POOL_MONITOR, delegate ); 45 } 46 47 protected Class 48 getStatsInterface() 49 { 50 return( AltJDBCConnectionPoolStats.class ); 51 } 52 53 56 public AltJDBCConnectionPoolStats 57 getJDBCConnectionPoolStats() 58 { 59 return getAltJDBCConnectionPoolStats(); 60 } 61 62 public AltJDBCConnectionPoolStats 63 getAltJDBCConnectionPoolStats() 64 { 65 return( (AltJDBCConnectionPoolStats)getStats() ); 66 } 67 68 protected final void 69 initStatisticNameMapper() 70 { 71 super.initStatisticNameMapper(); 72 73 final AttributeNameMapper m = getStatisticNameMapper(); 74 75 81 m.addMapping( "NumConnOpened", "NumConnAcquired" ); 82 m.addMapping( "NumConnClosed", "NumConnReleased" ); 83 m.addMapping( "AvgConnWaitTime", "AverageConnWaitTime" ); 84 } 85 } 86 | Popular Tags |