Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpMsg


              .getParameterAnnotations()) };
      OtpErlangObject otpArgs = new OtpErlangTuple(argsArray);
      tmpMbox.send(msg.getOperation().getName(), binding.getNode(),
          otpArgs);
      if (msg.getOperation().getOutputType() != null) {
        OtpMsg resultMsg = null;
        if (binding.hasTimeout()) {
          resultMsg = tmpMbox.receiveMsg(binding.getTimeout());
        } else {
          resultMsg = tmpMbox.receiveMsg();
        }
        OtpErlangObject result = resultMsg.getMsg();
        msg.setBody(TypeHelpersProxy.toJava(result, msg.getOperation()
            .getOutputType().getPhysical(), jmethod
            .getAnnotations()));
      }
    } catch (InterruptedException e) {
View Full Code Here


  }

  public void run() {
    try {
      // NOTE: there's also a timeout, like in reference bindings
      OtpMsg msg = null;
      if (nodeElement.getBinding().hasTimeout()) {
        msg = connection.receiveMsg(nodeElement.getBinding()
            .getTimeout());
      } else {
        msg = connection.receiveMsg();
      }
      // check if request is message or RPC
      if (msg.getRecipientName().equals(MessageHelper.RPC_MBOX)
          && !nodeElement.getBinding().isMbox()) {
        handleRpc(msg);
      } else if (!msg.getRecipientName().equals(MessageHelper.RPC_MBOX)
          && nodeElement.getBinding().isMbox()) {
        handleMsg(msg);
      } else {
        // received wrong message type
      }
View Full Code Here

TOP

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

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.