1 23 24 26 27 package com.sun.enterprise.management.monitor; 28 29 import java.util.Map ; 30 import javax.management.ObjectName ; 31 32 import com.sun.appserv.management.base.XTypes; 33 34 import com.sun.enterprise.management.support.Delegate; 35 36 import com.sun.appserv.management.monitor.statistics.WebModuleVirtualServerStats; 37 38 import com.sun.appserv.management.util.jmx.AttributeNameMapper; 39 40 41 public class WebModuleVirtualServerMonitorImpl extends MonitoringStatsImplBase 42 { 44 public 45 WebModuleVirtualServerMonitorImpl( final Delegate delegate ) 46 { 47 super( XTypes.WEB_MODULE_VIRTUAL_SERVER_MONITOR, delegate ); 48 } 49 50 51 protected Class 52 getStatsInterface() 53 { 54 return( WebModuleVirtualServerStats.class ); 55 } 56 57 public WebModuleVirtualServerStats 58 getWebModuleVirtualServerStats() 59 { 60 return (WebModuleVirtualServerStats)getStats(); 61 } 62 63 protected final void 64 initStatisticNameMapper() 65 { 66 super.initStatisticNameMapper(); 67 68 final AttributeNameMapper m = getStatisticNameMapper(); 69 70 m.addMapping( "JspCount", "JSPCount" ); 71 m.addMapping( "JspErrorCount", "JSPErrorCount" ); 72 m.addMapping( "JspReloadCount", "JSPReloadCount" ); 73 } 74 } 75 | Popular Tags |