Class RpcInvoker


  • public class RpcInvoker
    extends java.lang.Object
    A generic rpc invoker for use by command line tools
    Author:
    bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      RpcInvoker()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Request createRequest​(java.lang.String method, java.util.List<java.lang.String> arguments)  
      void invoke​(java.lang.String connectspec, java.lang.String method, java.util.List<java.lang.String> arguments)
      Invokes a rpc method without throwing an exception
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RpcInvoker

        public RpcInvoker()
    • Method Detail

      • createRequest

        protected Request createRequest​(java.lang.String method,
                                        java.util.List<java.lang.String> arguments)
      • invoke

        public void invoke​(java.lang.String connectspec,
                           java.lang.String method,
                           java.util.List<java.lang.String> arguments)
        Invokes a rpc method without throwing an exception
        Parameters:
        connectspec - the rpc server connection spec
        method - the name of the method to invoke
        arguments - the argument to the method, or null or an empty list if there are no arguments
      • main

        public static void main​(java.lang.String[] args)