|  1 |     | 
     | 
  |  2 |     | 
     | 
  |  3 |     | 
     | 
  |  4 |     | 
     | 
  |  5 |     | 
     | 
  |  6 |     | 
     | 
  |  7 |     | 
     | 
  |  8 |     | 
     | 
  |  9 |     | 
     | 
  |  10 |     | 
     | 
  |  11 |     | 
     | 
  |  12 |     | 
     | 
  |  13 |     | 
     | 
  |  14 |     | 
     | 
  |  15 |     | 
     | 
  |  16 |     | 
     | 
  |  17 |     | 
   package org.kuali.rice.ksb.api.messaging;  | 
  |  18 |     | 
     | 
  |  19 |     | 
   import org.apache.commons.lang.StringUtils;  | 
  |  20 |     | 
   import org.kuali.rice.ksb.api.bus.ServiceConfiguration;  | 
  |  21 |     | 
     | 
  |  22 |     | 
   import java.io.Serializable;  | 
  |  23 |     | 
     | 
  |  24 |     | 
     | 
  |  25 |     | 
     | 
  |  26 |     | 
     | 
  |  27 |     | 
     | 
  |  28 |     | 
     | 
  |  29 |     | 
   public class AsynchronousCall implements Serializable { | 
  |  30 |     | 
     | 
  |  31 |     | 
       private static final long serialVersionUID = -1036656564567726747L;  | 
  |  32 |     | 
     | 
  |  33 |     | 
       private Object[] arguments;  | 
  |  34 |     | 
     | 
  |  35 |     | 
       private Class<?>[] paramTypes;  | 
  |  36 |     | 
     | 
  |  37 |     | 
       private ServiceConfiguration serviceConfiguration;  | 
  |  38 |     | 
     | 
  |  39 |     | 
       private Serializable context;  | 
  |  40 |     | 
     | 
  |  41 |     | 
       private String methodName;  | 
  |  42 |     | 
     | 
  |  43 |     | 
       private AsynchronousCallback callback;  | 
  |  44 |     | 
     | 
  |  45 |     | 
       private boolean ignoreStoreAndForward;  | 
  |  46 |     | 
     | 
  |  47 |    0 |        public AsynchronousCall(Class<?>[] paramTypes, Object[] arguments, ServiceConfiguration serviceConfiguration, String methodName, AsynchronousCallback callback, Serializable context) { | 
  |  48 |    0 |            this.arguments = arguments;  | 
  |  49 |    0 |            this.paramTypes = paramTypes;  | 
  |  50 |    0 |            this.serviceConfiguration = serviceConfiguration;  | 
  |  51 |    0 |            this.methodName = methodName;  | 
  |  52 |    0 |            this.callback = callback;  | 
  |  53 |    0 |            this.context = context;  | 
  |  54 |    0 |        }  | 
  |  55 |     | 
     | 
  |  56 |     | 
       public Object[] getArguments() { | 
  |  57 |    0 |            return this.arguments;  | 
  |  58 |     | 
       }  | 
  |  59 |     | 
     | 
  |  60 |     | 
       public Class<?>[] getParamTypes() { | 
  |  61 |    0 |            return this.paramTypes;  | 
  |  62 |     | 
       }  | 
  |  63 |     | 
     | 
  |  64 |     | 
       public ServiceConfiguration getServiceConfiguration() { | 
  |  65 |    0 |            return this.serviceConfiguration;  | 
  |  66 |     | 
       }  | 
  |  67 |     | 
     | 
  |  68 |     | 
       public String getMethodName() { | 
  |  69 |    0 |            return this.methodName;  | 
  |  70 |     | 
       }  | 
  |  71 |     | 
     | 
  |  72 |     | 
       public AsynchronousCallback getCallback() { | 
  |  73 |    0 |            return this.callback;  | 
  |  74 |     | 
       }  | 
  |  75 |     | 
     | 
  |  76 |     | 
       public String toString() { | 
  |  77 |    0 |            return "[AsynchronousCall: " + "serviceInfo=" + this.serviceConfiguration + ", methodName=" + this.methodName + ", paramTypes=" + getStringifiedArray(this.paramTypes) + ", arguments=" + getStringifiedArray(this.arguments) + "]";  | 
  |  78 |     | 
       }  | 
  |  79 |     | 
     | 
  |  80 |     | 
         | 
  |  81 |     | 
     | 
  |  82 |     | 
     | 
  |  83 |     | 
     | 
  |  84 |     | 
     | 
  |  85 |     | 
     | 
  |  86 |     | 
     | 
  |  87 |     | 
       private static final String getStringifiedArray(Object[] array) { | 
  |  88 |    0 |            if (array == null) { | 
  |  89 |    0 |                return null;  | 
  |  90 |     | 
           }  | 
  |  91 |    0 |            StringBuffer sb = new StringBuffer(array.getClass().toString());  | 
  |  92 |    0 |            sb.append("["); | 
  |  93 |    0 |            StringUtils.join(array, ", ");  | 
  |  94 |    0 |            sb.append("]"); | 
  |  95 |    0 |            return sb.toString();  | 
  |  96 |     | 
       }  | 
  |  97 |     | 
     | 
  |  98 |     | 
       public boolean isIgnoreStoreAndForward() { | 
  |  99 |    0 |            return this.ignoreStoreAndForward;  | 
  |  100 |     | 
       }  | 
  |  101 |     | 
     | 
  |  102 |     | 
       public void setIgnoreStoreAndForward(boolean ignoreStoreAndForward) { | 
  |  103 |    0 |            this.ignoreStoreAndForward = ignoreStoreAndForward;  | 
  |  104 |    0 |        }  | 
  |  105 |     | 
     | 
  |  106 |     | 
       public Serializable getContext() { | 
  |  107 |    0 |            return this.context;  | 
  |  108 |     | 
       }  | 
  |  109 |     | 
     | 
  |  110 |     | 
       public void setContext(Serializable context) { | 
  |  111 |    0 |            this.context = context;  | 
  |  112 |    0 |        }  | 
  |  113 |     | 
     | 
  |  114 |     | 
     | 
  |  115 |     | 
   }  |