1 23 24 package com.sun.enterprise.admin.server.core.mbean.config; 25 26 import javax.management.*; 28 29 import com.sun.enterprise.config.ConfigException; 31 import com.sun.enterprise.config.serverbeans.ServerTags; 32 import com.sun.enterprise.config.serverbeans.ServerXPathHelper; 33 34 35 import com.sun.enterprise.admin.common.ObjectNames; 37 import com.sun.enterprise.admin.common.exception.MBeanConfigException; 38 import com.sun.enterprise.admin.common.constant.ConfigAttributeName; 39 40 46 public class ManagedLogService extends ConfigMBeanBase implements ConfigAttributeName .LogService 47 { 48 51 private static final String [][] MAPLIST = 52 { 53 {kLogFile , ATTRIBUTE + ServerTags.FILE}, 54 {kUseSystemLogging , ATTRIBUTE + ServerTags.USE_SYSTEM_LOGGING}, 55 }; 56 59 private static final String [] ATTRIBUTES = 60 { 61 kLogFile + ", String, RW" , 62 kUseSystemLogging + ", boolean, RW" , 63 }; 64 67 private static final String [] OPERATIONS = null; 68 69 70 73 public ManagedLogService() throws MBeanConfigException 74 { 75 this.setDescriptions(MAPLIST, ATTRIBUTES, OPERATIONS); 76 } 77 78 82 public ManagedLogService(String instanceName) throws MBeanConfigException 83 { 84 this(); initialize(ObjectNames.kLogService, new String []{instanceName}); 86 } 87 } 88 | Popular Tags |