1 23 24 26 27 package com.sun.enterprise.management.monitor; 28 29 import com.sun.appserv.management.base.XTypes; 30 import com.sun.enterprise.management.support.Delegate; 31 32 import com.sun.appserv.management.monitor.statistics.ConnectionManagerStats; 33 34 import com.sun.appserv.management.util.jmx.AttributeNameMapper; 35 36 public class ConnectionManagerMonitorImpl extends MonitoringStatsImplBase 37 { 39 public ConnectionManagerMonitorImpl(Delegate delegate) 40 { 41 super( XTypes.CONNECTION_MANAGER_MONITOR, delegate ); 42 } 43 44 45 protected Class 46 getStatsInterface() 47 { 48 return( ConnectionManagerStats.class ); 49 } 50 51 public ConnectionManagerStats 52 getConnectionManagerStats() 53 { 54 return (ConnectionManagerStats)getStats(); 55 } 56 57 protected final void 58 initStatisticNameMapper() 59 { 60 super.initStatisticNameMapper(); 61 62 final AttributeNameMapper m = getStatisticNameMapper(); 63 64 m.addMapping( "NumberOfConnections", "TotalConnections" ); 66 m.addMapping( "NumberOfBusyConnections", "ConnectionsInUse" ); 67 m.addMapping( "NumberOfIdleConnections", "ConnectionsIdle" ); 68 } 69 } 70 | Popular Tags |