Esempio n. 1
0
 private String remoteCall(String method, String... args) {
   try {
     connection.sendRPC(cacheModule, method, stringsToErlangStrings(args));
     OtpErlangObject received = connection.receiveRPC();
     return parse(received);
   } catch (Exception e) {
     throw new RuntimeException(e.getMessage(), e);
   }
 }
Esempio n. 2
0
 public void close() {
   try {
     connection.close();
   } catch (Exception e) {
     throw new RuntimeException(e.getMessage(), e);
   }
 }