- public Object invokeMethod(IoTRMIObject rmiObj) throws IOException {
-
- String methodSign = rmiObj.getSignature();
- Object[] paramObj = null;
- Object retObj = null;
-
- if (methodSign.equals("intprintInt()")) {
- retObj = ___printInt();
- } else if (methodSign.equals("voidsetInt(int)")) {
- ___setInt(rmiObj);
- } else
- throw new Error("Signature not recognized!");
- System.out.println("Return object: " + retObj);
-
- return retObj;
- }
-