Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpConnection.send()


    // delay message sending after connecting
    Thread.sleep(1000);
    // service binding timeout set to 500 so after that time it will give up
    // and close connection
    try {
      connection.send("rex", new OtpErlangString("test"));
      fail("Exception expected");
    } catch (Exception e) {
      assertEquals(IOException.class, e.getClass());
    }
View Full Code Here


      assertEquals(IOException.class, e.getClass());
    }

    connection = self.connect(peer);
    // sending message immediately and encountering no connection close
    connection.send("rex", new OtpErlangString("test"));

  }

  /**
   * Tests cookie feature for both reference and service bindings RPC
View Full Code Here

      OtpErlangList params = TypeHelpersProxy.toErlangAsList(msg
          .getBody(), jmethod.getParameterAnnotations());
      OtpErlangTuple message = MessageHelper.rpcMessage(self.pid(), self
          .createRef(), binding.getModule(), msg.getOperation()
          .getName(), params);
      connection.send(MessageHelper.RPC_MBOX, message);
      OtpErlangObject rpcResponse = null;
      if (binding.hasTimeout()) {
        rpcResponse = connection.receive(binding.getTimeout());
      } else {
        rpcResponse = connection.receive();
View Full Code Here

    // delay message sending after connecting
    Thread.sleep(1000);
    // service binding timeout set to 500 so after that time it will give up
    // and close connection
    try {
      connection.send("rex", new OtpErlangString("test"));
      fail("Exception expected");
    } catch (Exception e) {
      assertEquals(IOException.class, e.getClass());
    }
View Full Code Here

      assertEquals(IOException.class, e.getClass());
    }

    connection = self.connect(peer);
    // sending message immediately and encountering no connection close
    connection.send("rex", new OtpErlangString("test"));

  }

  /**
   * Tests cookie feature for both reference and service bindings RPC
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.