@Override public boolean invoke(String[] args) throws Exception { if (args.length < 2) { System.err.println("Wrong number of args"); System.err.println(getShortHelp()); return true; } String endpointName = args[0]; String operationName = args[1]; String params[] = new String[args.length - 2]; System.arraycopy(args, 2, params, 0, params.length); Object proxy = shell.getNode().getService(null, endpointName); invoke(proxy, operationName, params); return true; }
@Override public boolean invoke(String[] args) throws Exception { if (args.length < 2) { System.err.println("Wrong number of args"); System.err.println(getShortHelp()); return true; } String endpointName = args[0]; String operationName = args[1]; String params[] = new String[args.length - 2]; System.arraycopy(args, 2, params, 0, params.length); Object proxy = shell.getNode().getService(null, endpointName); invoke(proxy, operationName, params); return true; }
Object proxy = shell.getNode().getService(null, service); Method[] ms = proxy.getClass().getMethods(); List<String> ops = new ArrayList<String>();
Object proxy = shell.getNode().getService(null, service); Method[] ms = proxy.getClass().getMethods(); List<String> ops = new ArrayList<String>();