1 23 24 package com.sun.enterprise.admin.server.core.mbean.config; 25 26 import com.sun.enterprise.config.ConfigException; 28 import com.sun.enterprise.config.serverbeans.ServerXPathHelper; 29 import com.sun.enterprise.config.serverbeans.ServerTags; 30 import com.sun.enterprise.config.serverbeans.J2eeApplication; 31 import javax.management.Attribute ; 33 34 import com.sun.enterprise.admin.common.ObjectNames; 36 import com.sun.enterprise.admin.common.EntityStatus; 37 import com.sun.enterprise.admin.common.constant.ConfigAttributeName; 38 import com.sun.enterprise.admin.common.exception.J2EEApplicationException; 39 import com.sun.enterprise.admin.common.exception.AFException; 40 import com.sun.enterprise.admin.common.exception.MBeanConfigException; 41 42 43 49 50 public class ManagedLifecycleModule extends ConfigMBeanBase implements ConfigAttributeName.LifecycleModule 51 { 52 private static final String [][] MAPLIST = 53 { 54 {kName , ATTRIBUTE + ServerTags.NAME}, 55 {kClassName , ATTRIBUTE + ServerTags.CLASS_NAME}, 57 {kClasspath , ATTRIBUTE + ServerTags.CLASSPATH}, 58 {kLoadOrder , ATTRIBUTE + ServerTags.LOAD_ORDER}, 59 {kIsFailureFatal , ATTRIBUTE + ServerTags.IS_FAILURE_FATAL}, 60 {kDescription , ATTRIBUTE + PSEUDO_ATTR_DESCRIPTION}, 61 }; 62 private static final String [] ATTRIBUTES = 63 { 64 kName + ", String, R" , 65 kClassName + ", String, RW" , 67 kClasspath + ", String, RW" , 68 kLoadOrder + ", String, RW" , 69 kIsFailureFatal + ", boolean, RW" , 70 kDescription + ", String, RW" , 71 }; 72 73 74 private static final String [] OPERATIONS = 75 { 76 "enable(), ACTION", 77 "disable(), ACTION" 78 }; 79 80 81 84 public ManagedLifecycleModule() throws MBeanConfigException 85 { 86 this.setDescriptions(MAPLIST, ATTRIBUTES, OPERATIONS); 87 } 88 89 94 public ManagedLifecycleModule(String instanceName, String appName) 95 throws MBeanConfigException 96 { 97 this(); initialize(ObjectNames.kLifecycleModule, new String []{instanceName, appName}); 99 100 } 101 102 107 public void disable() throws AFException 108 { 109 return; 117 } 118 119 124 public void enable() throws AFException 125 { 126 return; 134 } 135 136 137 } 138 | Popular Tags |