1 22 package org.jboss.console.manager.interfaces.impl; 23 24 import org.jboss.console.navtree.AppletBrowser; 25 import org.jboss.console.navtree.AppletTreeAction; 26 import org.jboss.console.navtree.TreeContext; 27 28 import javax.management.ObjectName ; 29 30 45 public class MBeanAction 46 implements AppletTreeAction 47 { 48 protected ObjectName targetObjectName = null; 49 protected String actionName = null; 50 protected Object [] params = null; 51 protected String [] signature = null; 52 53 public MBeanAction () {} 54 55 public MBeanAction (ObjectName pName, 56 String pActionName, 57 Object [] pParams, 58 String [] pSignature) 59 { 60 this.targetObjectName = pName; 61 this.actionName = pActionName; 62 this.params = pParams; 63 this.signature = pSignature; 64 } 65 66 public void doAction(TreeContext tc, AppletBrowser applet) 67 { 68 try 69 { 70 tc.getRemoteMBeanInvoker ().invoke(targetObjectName, actionName, params, signature); 71 } 72 catch (Exception displayed) 73 { 74 displayed.printStackTrace(); 75 } 76 } 77 78 } 79 | Popular Tags |