Package com.yahoo.jrt.tool
Class RpcInvoker
- java.lang.Object
-
- com.yahoo.jrt.tool.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 exceptionstatic void
main(java.lang.String[] args)
-
-
-
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 specmethod
- the name of the method to invokearguments
- 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)
-
-