1 23 24 package com.sun.enterprise.management.monitor; 25 26 27 import com.sun.appserv.management.monitor.JVMMonitor; 28 29 import com.sun.appserv.management.base.XTypes; 30 import com.sun.enterprise.management.support.Delegate; 31 32 import javax.management.j2ee.statistics.JVMStats ; 33 34 import com.sun.appserv.management.util.jmx.AttributeNameMapper; 35 36 38 public final class JVMMonitorImpl extends MonitoringStatsImplBase 39 { 41 public JVMMonitorImpl(Delegate delegate) 42 { 43 super( XTypes.JVM_MONITOR, delegate ); 44 } 45 46 47 protected Class 48 getStatsInterface() 49 { 50 return( JVMStats .class ); 51 } 52 53 54 public JVMStats 55 getJVMStats() 56 { 57 return (JVMStats )getStats(); 58 } 59 60 61 protected final void 62 initStatisticNameMapper() 63 { 64 super.initStatisticNameMapper(); 65 66 final AttributeNameMapper m = getStatisticNameMapper(); 67 68 m.addMapping( "JvmHeapSize", "HeapSize" ); 70 m.addMapping( "JvmUpTime", "UpTime" ); 71 } 72 } 73 74 | Popular Tags |