Ejemplo n.º 1
0
 @Override
 public OtpErlangObject call(
     final int timeout,
     final OtpErlangObject gleader,
     final String module,
     final String fun,
     final String signature,
     final Object... args0)
     throws RpcException {
   if (stopped) {
     return null;
   }
   tryConnect();
   OtpErlangObject result;
   try {
     result =
         rpcHelper.rpcCall(
             localNode,
             data.getNodeName(),
             false,
             gleader,
             module,
             fun,
             timeout,
             signature,
             args0);
   } catch (final SignatureException e) {
     throw new RpcException(e);
   }
   return result;
 }
Ejemplo n.º 2
0
 @Override
 public void send(final String name, final Object msg) {
   try {
     tryConnect();
     rpcHelper.send(localNode, data.getNodeName(), name, msg);
   } catch (final SignatureException e) {
   } catch (final RpcException e) {
   }
 }
Ejemplo n.º 3
0
 @Override
 public void send(final OtpErlangPid pid, final Object msg) {
   try {
     tryConnect();
     rpcHelper.send(localNode, pid, msg);
   } catch (final SignatureException e) {
   } catch (final RpcException e) {
   }
 }
Ejemplo n.º 4
0
 @Override
 public void cast(
     final OtpErlangObject gleader,
     final String module,
     final String fun,
     final String signature,
     final Object... args0)
     throws RpcException {
   tryConnect();
   try {
     rpcHelper.rpcCast(
         localNode, data.getNodeName(), false, gleader, module, fun, signature, args0);
   } catch (final SignatureException e) {
     throw new RpcException(e);
   }
 }
Ejemplo n.º 5
0
 @Override
 public void async_call_cb(
     final IRpcCallback cb,
     final int timeout,
     final OtpErlangObject gleader,
     final String module,
     final String fun,
     final String signature,
     final Object... args)
     throws RpcException {
   tryConnect();
   try {
     rpcHelper.makeAsyncCbCall(
         localNode, data.getNodeName(), cb, timeout, gleader, module, fun, signature, args);
   } catch (final SignatureException e) {
     throw new RpcException(e);
   }
 }