public class Calculator { public static void main(String[] args) throws IOException { RpcInvoker invoker = new RpcInvoker(context); } } public class CalculatorImpl implements RpcProxy { @Override public int add(int a, int b) { return a + b; } }