1 19 package org.netbeans.modules.j2ee.sun.ide.runtime.nodes; 20 21 import java.util.List ; 22 import java.util.Arrays ; 23 import org.netbeans.modules.j2ee.sun.bridge.apis.AppserverMgmtLeafNode; 24 25 import org.netbeans.modules.j2ee.sun.bridge.apis.AppserverMgmtController; 26 import org.netbeans.modules.j2ee.sun.util.NodeTypes; 27 28 30 public class JVMNode extends AppserverMgmtLeafNode { 31 32 private static final String NODE_TYPE = NodeTypes.JVM; 33 34 public JVMNode(final AppserverMgmtController controller) { 35 super(controller, NODE_TYPE); 36 } 37 38 43 protected java.util.Map getSheetProperties() { 44 return getAppserverMgmtController().getJVMProperties("server", 45 getPropertiesToIgnore()); 46 } 47 48 49 60 public javax.management.Attribute setSheetProperty(String attrName, Object value) { 61 return getAppserverMgmtController(). 62 setJVMProperty("server", attrName, value); 63 } 64 65 protected List getPropertiesToIgnore() { 66 return Arrays.asList(NodeTypes.JVM_NODE); 67 } 68 } 69 | Popular Tags |