1 23 24 25 package com.sun.enterprise.management.config; 26 27 import java.util.Map ; 28 import java.util.Set ; 29 import java.util.Collections ; 30 31 import javax.management.ObjectName ; 32 import javax.management.AttributeList ; 33 34 import com.sun.appserv.management.base.XTypes; 35 import com.sun.enterprise.management.support.oldconfig.OldAvailabilityServiceMBean; 36 37 39 public final class JMSAvailabilityConfigFactory extends ConfigFactory 40 { 41 private final OldAvailabilityServiceMBean mOldAvailabilityService; 42 43 public 44 JMSAvailabilityConfigFactory(final ConfigFactoryCallback callbacks ) 45 { 46 super( callbacks ); 47 48 mOldAvailabilityService = 49 getOldConfigProxies().getOldAvailabilityServiceMBean( getConfigName() ); 50 } 51 52 53 55 public ObjectName 56 create( boolean availabilityEnabled, String mqStorePoolName ) 57 { 58 final String [] requiredParams = 59 { 60 "availability-enabled", "" + availabilityEnabled, 61 "mq-store-pool-name", mqStorePoolName, 62 }; 63 64 final Map <String ,String > params = initParams( requiredParams, null ); 65 66 final ObjectName amxName = createChild( null ); 67 68 return( null ); 69 } 70 71 72 protected ObjectName 73 createOldChildConfig( final AttributeList attrs ) 74 { 75 final ObjectName oldObjectName = 76 mOldAvailabilityService.createJmsAvailability( attrs ); 77 78 return oldObjectName; 79 } 80 81 protected void 82 internalRemove( final ObjectName objectName ) 83 { 84 mOldAvailabilityService.removeJmsAvailability(); 85 } 86 } 87 88 | Popular Tags |