Interface RpcInvocation
-
- All Superinterfaces:
Message
- All Known Implementing Classes:
LocalRpcInvocation,RemoteRpcInvocation
public interface RpcInvocation extends Message
Interface for rpc invocation messages. The interface allows to request all necessary information to lookup a method and call it with the corresponding arguments.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static StringconvertRpcToString(String declaringClassName, String methodName, Class<?>[] parameterTypes)Converts a rpc call into its string representation.Object[]getArgs()Returns the arguments of the remote procedure call.StringgetMethodName()Returns the method's name.Class<?>[]getParameterTypes()Returns the method's parameter types.
-
-
-
Method Detail
-
getMethodName
String getMethodName()
Returns the method's name.- Returns:
- Method name
-
getParameterTypes
Class<?>[] getParameterTypes()
Returns the method's parameter types.- Returns:
- Method's parameter types
-
getArgs
Object[] getArgs()
Returns the arguments of the remote procedure call.- Returns:
- Arguments of the remote procedure call
-
convertRpcToString
static String convertRpcToString(String declaringClassName, String methodName, Class<?>[] parameterTypes)
Converts a rpc call into its string representation.- Parameters:
declaringClassName- declaringClassName declares the specified rpcmethodName- methodName of the rpcparameterTypes- parameterTypes of the rpc- Returns:
- string representation of the rpc
-
-