Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpNode.ping()


          Thread.sleep(delay);
        // At this point, the process may have not yet started or
        // already terminated, it is easy to find out which of the
        // two has happened by doing
        int timeout = serverTimeout;
        while (!self.ping(traceRunnerNode, 500) && timeout > 0) {
          try {
            erlangProcess.exitValue();
            // process terminated, record this as a failure
            timeout = 0;
          } catch (IllegalThreadStateException e) {
View Full Code Here


                stdDumper.setDaemon(true);stdDumper.start();
                if (delay > 0) Thread.sleep(delay);
                // At this point, the process may have not yet started or already terminated, it is easy to find out which of the
                // two has happened by doing
                int timeout = serverTimeout;
                while(!self.ping(traceRunnerNode, 500) && timeout > 0)
                {
                  try
                  {
                    erlangProcess.exitValue();
                    // process terminated, record this as a failure
View Full Code Here

          Thread.sleep(delay);
        // At this point, the process may have not yet started or
        // already terminated, it is easy to find out which of the
        // two has happened by doing
        int timeout = serverTimeout;
        while (!self.ping(traceRunnerNode, 500) && timeout > 0) {
          try {
            erlangProcess.exitValue();
            // process terminated, record this as a failure
            timeout = 0;
          } catch (IllegalThreadStateException e) {
View Full Code Here

        if (hostName == null) {
            return false;
        }
        try {
            final OtpNode node = new OtpNode("jtest", "erlide");
            final boolean result = node.ping(nodeName + "@" + hostName, 1000);
            node.close();
            return result;
        } catch (final IOException e) {
            ErlLogger.error(e);
        }
View Full Code Here

      case status_handler_remoteStatus:
    dbg("java running test case \"status_handler_remoteStatus\"");

    OtpNode node2 = new OtpNode("javanode2", cookie);
    node2.ping(node1.node(),2000);
    node2.close();
    Thread.sleep(500);
    break;

      case status_handler_connAttempt:
View Full Code Here

      case status_handler_connAttempt:
    dbg("java running test case \"status_handler_connAttempt\"");

    OtpNode node3 = new OtpNode("javanode3","othercookie");
    node3.ping(node1.node(),2000);
    node1.ping(node3.node(),2000);
    break;

      }
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.