1 7 package org.jboss.cache.marshall; 8 9 import java.lang.reflect.Method ; 10 11 26 public class MethodCall extends org.jgroups.blocks.MethodCall 27 { 28 31 private static final long serialVersionUID = -5316198032742449998L; 32 33 private int methodIdInteger = -1; 34 35 public MethodCall() 36 { 37 super(); 38 } 39 40 public MethodCall(Method method, Object [] arguments) 41 { 42 super(method, arguments); 43 } 44 45 public MethodCall(Method method, Object [] arguments, int methodIdInteger) 46 { 47 super(method, arguments); 48 this.methodIdInteger = methodIdInteger; 49 } 50 51 public void setMethodId(int id) 52 { 53 methodIdInteger = id; 54 } 55 56 public int getMethodId() 57 { 58 return methodIdInteger; 59 } 60 61 public String toString() 62 { 63 StringBuffer ret = new StringBuffer (); 64 boolean first = true; 65 ret.append("MethodName: "); 66 ret.append(method_name); 67 ret.append("; MethodIdInteger: "); 68 ret.append(methodIdInteger); 69 ret.append("; Args: ("); 70 if (args != null) 71 { 72 for (int i = 0; i < args.length; i++) 73 { 74 if (first) 75 { 76 first = false; 77 } 78 else 79 { 80 ret.append(", "); 81 } 82 ret.append(args[i]); 83 } 84 } 85 ret.append(')'); 86 return ret.toString(); 87 88 } 89 } 90 | Popular Tags |