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 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 rpc
        methodName - methodName of the rpc
        parameterTypes - parameterTypes of the rpc
        Returns:
        string representation of the rpc