1 23 24 29 30 31 package com.sun.enterprise.management.config; 32 33 import java.util.Map ; 34 35 import javax.management.ObjectName ; 36 import javax.management.AttributeList ; 37 38 import com.sun.enterprise.management.support.oldconfig.OldMonitoringServiceMBean; 39 40 43 public final class ModuleMonitoringLevelsConfigFactory extends ConfigFactory 44 { 45 private final OldMonitoringServiceMBean mOldMonitoringServiceMBean; 46 47 public 48 ModuleMonitoringLevelsConfigFactory( final ConfigFactoryCallback callbacks) 49 { 50 super( callbacks ); 51 mOldMonitoringServiceMBean = 52 getOldConfigProxies().getOldMonitoringServiceMBean( getConfigName() ); 53 } 54 55 public ObjectName 56 create( Map <String ,String > optional ) 57 { 58 final Map <String ,String > params = initParams( optional ); 59 60 final ObjectName amxName = createChild( params ); 61 62 return( amxName ); 63 } 64 65 protected ObjectName 66 createOldChildConfig( final AttributeList attrs ) 67 { 68 return mOldMonitoringServiceMBean.createModuleMonitoringLevels( attrs ); 69 } 70 71 public void 72 internalRemove( final ObjectName objectName ) 73 { 74 mOldMonitoringServiceMBean.removeModuleMonitoringLevels(); 75 } 76 } 77 78 | Popular Tags |