Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangRef


        if (DISABLED) {
            return null;
        }
        final RpcData data = new RpcData(System.currentTimeMillis(), peer, module, fun,
                args, callSize);
        final OtpErlangRef ref = node.createRef();
        ongoing.put(ref, data);
        return ref;
    }
View Full Code Here


        if (logCalls) {
            final Object[] args01 = { module, fun, argString(args) };
            ErlLogger.debug("call -> %s:%s(%s)", args01);
        }
        //
        final OtpErlangRef ref = RpcMonitor.recordRequest(node, peer, module, fun, args,
                OtpErlang.sizeOf(res));
        //
        mbox.send("rex", peer, res);
        if (CHECK_RPC) {
            ErlLogger.debug("RPC " + mbox.hashCode() + "=> " + res);
View Full Code Here

            if (!(message.elementAt(1) instanceof OtpErlangAtom))
              System.out.println("invalid request received by worker, expected an atom, got "+message.elementAt(1));
            OtpErlangAtom command = (OtpErlangAtom) message.elementAt(1);
            if (!(message.elementAt(0) instanceof OtpErlangRef))
              System.out.println("invalid request received by worker, expected a ref, got "+message.elementAt(0));
            final OtpErlangRef ref = (OtpErlangRef) message.elementAt(0);

            if (command.equals(msgEcho))
              mbox.send(erlangPartner,new OtpErlangTuple(new OtpErlangObject[]{ref,msgWorkerOk}));
            if (command.equals(msgStop))
              mbox.send(erlangPartner,new OtpErlangTuple(new OtpErlangObject[]{ref,msgWorkerOk}));
View Full Code Here

        if (!(message.elementAt(2) instanceof OtpErlangAtom))
          System.out.println("invalid request received, expected an atom, got "+message.elementAt(2));
        OtpErlangAtom command = (OtpErlangAtom) message.elementAt(2);
        if (!(message.elementAt(1) instanceof OtpErlangRef))
          System.out.println("invalid request received, expected a ref, got "+message.elementAt(1));
        OtpErlangRef ref = (OtpErlangRef) message.elementAt(1);
        if (!(message.elementAt(0) instanceof OtpErlangPid))
          System.out.println("invalid request received, expected a pid, got "+message.elementAt(0));
        OtpErlangPid pid = (OtpErlangPid) message.elementAt(0);
       
        if (command.equals(msgEcho))
View Full Code Here

        if (!(message.elementAt(2) instanceof OtpErlangAtom))
          System.out.println("invalid request received, expected an atom, got "+message.elementAt(2));
        OtpErlangAtom command = (OtpErlangAtom) message.elementAt(2);
        if (!(message.elementAt(1) instanceof OtpErlangRef))
          System.out.println("invalid request received, expected a ref, got "+message.elementAt(1));
        OtpErlangRef ref = (OtpErlangRef) message.elementAt(1);
        if (!(message.elementAt(0) instanceof OtpErlangPid))
          System.out.println("invalid request received, expected a pid, got "+message.elementAt(0));
        OtpErlangPid pid = (OtpErlangPid) message.elementAt(0);
       
        if (command.equals(msgEcho))
View Full Code Here

            if (!(message.elementAt(1) instanceof OtpErlangAtom))
              System.out.println("invalid request received by worker, expected an atom, got "+message.elementAt(1));
            OtpErlangAtom command = (OtpErlangAtom) message.elementAt(1);
            if (!(message.elementAt(0) instanceof OtpErlangRef))
              System.out.println("invalid request received by worker, expected a ref, got "+message.elementAt(0));
            final OtpErlangRef ref = (OtpErlangRef) message.elementAt(0);

            if (command.equals(msgEcho))
              mbox.send(erlangPartner,new OtpErlangTuple(new OtpErlangObject[]{ref,msgWorkerOk}));
            if (command.equals(msgStop))
              mbox.send(erlangPartner,new OtpErlangTuple(new OtpErlangObject[]{ref,msgWorkerOk}));
View Full Code Here

 
  @Test
  public void testToStringFail1()
  {
    checkForCorrectException(new whatToRun() { public @Override void run() {
      ErlangLabel.dumpErlangObject(new OtpErlangRef("aa",1,2));
    }},IllegalArgumentException.class,"OtpErlangRef is not supported");
  }
View Full Code Here

            if (!(message.elementAt(1) instanceof OtpErlangAtom))
              System.out.println("invalid request received by worker, expected an atom, got "+message.elementAt(1));
            OtpErlangAtom command = (OtpErlangAtom) message.elementAt(1);
            if (!(message.elementAt(0) instanceof OtpErlangRef))
              System.out.println("invalid request received by worker, expected a ref, got "+message.elementAt(0));
            final OtpErlangRef ref = (OtpErlangRef) message.elementAt(0);

            if (command.equals(msgEcho))
              mbox.send(erlangPartner,new OtpErlangTuple(new OtpErlangObject[]{ref,msgWorkerOk}));
            if (command.equals(msgStop))
              mbox.send(erlangPartner,new OtpErlangTuple(new OtpErlangObject[]{ref,msgWorkerOk}));
View Full Code Here

            if (!(message.elementAt(1) instanceof OtpErlangAtom))
              System.out.println("invalid request received by worker, expected an atom, got "+message.elementAt(1));
            OtpErlangAtom command = (OtpErlangAtom) message.elementAt(1);
            if (!(message.elementAt(0) instanceof OtpErlangRef))
              System.out.println("invalid request received by worker, expected a ref, got "+message.elementAt(0));
            final OtpErlangRef ref = (OtpErlangRef) message.elementAt(0);

            if (command.equals(msgEcho))
              mbox.send(erlangPartner,new OtpErlangTuple(new OtpErlangObject[]{ref,msgWorkerOk}));
            if (command.equals(msgStop))
              mbox.send(erlangPartner,new OtpErlangTuple(new OtpErlangObject[]{ref,msgWorkerOk}));
View Full Code Here

        if (!(message.elementAt(2) instanceof OtpErlangAtom))
          System.out.println("invalid request received, expected an atom, got "+message.elementAt(2));
        OtpErlangAtom command = (OtpErlangAtom) message.elementAt(2);
        if (!(message.elementAt(1) instanceof OtpErlangRef))
          System.out.println("invalid request received, expected a ref, got "+message.elementAt(1));
        OtpErlangRef ref = (OtpErlangRef) message.elementAt(1);
        if (!(message.elementAt(0) instanceof OtpErlangPid))
          System.out.println("invalid request received, expected a pid, got "+message.elementAt(0));
        OtpErlangPid pid = (OtpErlangPid) message.elementAt(0);
       
        if (command.equals(msgEcho))
View Full Code Here

TOP

Related Classes of com.ericsson.otp.erlang.OtpErlangRef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.