1 22 23 package org.snmp4j.agent.mo.jmx; 24 25 34 public class MBeanActionInfo { 35 36 private int actionID; 37 private String method; 38 private Object [] parameters = new Object [0]; 39 private String [] signature = new String [0]; 40 41 public MBeanActionInfo(int actionID, String actionMethod) { 42 this.actionID = actionID; 43 this.method = actionMethod; 44 } 45 46 public MBeanActionInfo(int actionID, String actionMethod, 47 Object [] actionParameters) { 48 this(actionID, actionMethod); 49 if (actionParameters != null) { 50 this.parameters = actionParameters; 51 String [] signature = new String [actionParameters.length]; 52 for (int i = 0; i < actionParameters.length; i++) { 53 signature[i] = actionParameters[i].getClass().getName(); 54 } 55 } 56 } 57 58 public MBeanActionInfo(int actionID, String actionMethod, 59 Object [] actionParameters, 60 String [] signature) { 61 this(actionID, actionMethod); 62 this.parameters = actionParameters; 63 this.signature = signature; 64 } 65 66 public int getActionID() { 67 return actionID; 68 } 69 70 public String getMethod() { 71 return method; 72 } 73 74 public Object [] getParameters() { 75 return parameters; 76 } 77 78 public String [] getSignature() { 79 return signature; 80 } 81 82 } 83 | Popular Tags |