org.sourceforge.jemmrpc.shared
Class RPCCallMessage

java.lang.Object
  extended by org.sourceforge.jemmrpc.shared.Message
      extended by org.sourceforge.jemmrpc.shared.RPCCallMessage
All Implemented Interfaces:
java.io.Serializable

public class RPCCallMessage
extends Message

The RPCCallMessage details an RPC call, giving information about the calling thread, target interface,method arguments and whether the call is synchronous or asynchronous.

Author:
Rory Graves
See Also:
Serialized Form

Field Summary
 boolean asyncCall
          Whether this is an asynchronous call rather than a synchronous one.
protected  java.lang.Class<?> ifClass
          Target interface class.
protected  java.lang.String methodName
          Target method name.
 java.lang.Class<?>[] parameterTypes
          method parameter types.
 
Constructor Summary
RPCCallMessage(java.lang.String threadId, boolean asyncCall, java.lang.Class<?> ifClass, java.lang.String methodName, java.lang.Class<?>[] parameterTypes, java.lang.Object[] parameters)
           
 
Method Summary
 java.lang.Class<?> getIfClass()
          Return the called interface class.
 java.lang.Object[] getParameters()
          Return the parameters to the RPC call.
 
Methods inherited from class org.sourceforge.jemmrpc.shared.Message
getThreadId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

asyncCall

public final boolean asyncCall
Whether this is an asynchronous call rather than a synchronous one.


ifClass

protected final java.lang.Class<?> ifClass
Target interface class.


methodName

protected final java.lang.String methodName
Target method name.


parameterTypes

public final java.lang.Class<?>[] parameterTypes
method parameter types.

Constructor Detail

RPCCallMessage

public RPCCallMessage(java.lang.String threadId,
                      boolean asyncCall,
                      java.lang.Class<?> ifClass,
                      java.lang.String methodName,
                      java.lang.Class<?>[] parameterTypes,
                      java.lang.Object[] parameters)
Parameters:
threadId - The threadId of the caller.
asyncCall - True for asynchronous call, false for synchronous.
ifClass - The target interface class.
methodName - The target method name.
parameterTypes - The parameter types of the target method.
parameters - The parameter values (wrapped if base types)
Method Detail

getIfClass

public java.lang.Class<?> getIfClass()
Return the called interface class.

Returns:
The class of the called interface.

getParameters

public java.lang.Object[] getParameters()
Return the parameters to the RPC call.

Returns:
The RPC call parameters.


Copyright © 2008. All Rights Reserved.