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.ConfigBean; 33 34 import com.sun.enterprise.admin.server.core.mbean.meta.MBeanEasyConfig; 36 import com.sun.enterprise.admin.common.exception.MBeanConfigException; 37 import com.sun.enterprise.admin.common.constant.ConfigAttributeName; 38 import com.sun.enterprise.admin.common.ObjectNames; 39 40 public class ManagedMdbContainer extends ConfigMBeanBase implements ConfigAttributeName.MdbContainer 41 { 42 private static final String [][] MAPLIST = { 43 { kMinBeansInPool, ATTRIBUTE + ServerTags.STEADY_POOL_SIZE }, 44 { kBeanIncrementCount, ATTRIBUTE + ServerTags.POOL_RESIZE_QUANTITY}, 45 { kMaxPoolSize, ATTRIBUTE + ServerTags.MAX_POOL_SIZE }, 46 { kIdleInPoolTimeoutInSeconds, ATTRIBUTE + ServerTags.IDLE_TIMEOUT_IN_SECONDS }, 47 }; 50 51 private static final String [] ATTRIBUTES = { 52 kMinBeansInPool + ", int, RW", 53 kBeanIncrementCount + ", int, RW", 54 kMaxPoolSize + ", int, RW", 55 kIdleInPoolTimeoutInSeconds + ", int, RW", 56 }; 59 60 private static final String [] OPERATIONS = null; 61 62 private final String MDB_NODE_PATH ="/server/mdb-container"; 63 64 67 public ManagedMdbContainer() throws MBeanConfigException 68 { 69 this.setDescriptions(MAPLIST, ATTRIBUTES, OPERATIONS); 70 } 71 72 public ManagedMdbContainer(String instanceName) throws MBeanConfigException 73 { 74 this(); initialize(ObjectNames.kMdbContainer, new String []{instanceName}); 76 } 77 78 } 79 80 81 | Popular Tags |