Package com.kurento.kmf.test.services

Examples of com.kurento.kmf.test.services.RemoteHost


    do {
      nodeCandidate = nodeList.get(Randomizer.getInt(0, nodeList.size()));
      log.debug("Node candidate {}", nodeCandidate);

      if (RemoteHost.ping(nodeCandidate)) {
        RemoteHost remoteHost = new RemoteHost(nodeCandidate,
            getProperty("test.node.login"),
            getProperty("test.node.passwd"));
        try {
          remoteHost.start();
          int xvfb = remoteHost.runAndWaitCommand("xvfb-run");
          if (xvfb != 2) {
            log.debug("Node {} has no Xvfb", nodeCandidate);
          } else {
            nodes.add(new Node(nodeCandidate, browser, video, audio));
          }
        } catch (Exception e) {
          log.debug("Invalid credentials to access node {} ",
              nodeCandidate);
        } finally {
          remoteHost.stop();
        }

      } else {
        log.debug("Node {} seems to be down", nodeCandidate);
      }
View Full Code Here


    List<String> nodesOk = new ArrayList<String>();

    for (String node : nodeList) {
      if (RemoteHost.ping(node)) {

        RemoteHost remoteHost = new RemoteHost(node,
            getProperty("test.node.login"),
            getProperty("test.node.passwd"));
        try {
          remoteHost.start();
          int xvfb = remoteHost.runAndWaitCommand("xvfb-run");
          if (xvfb != 2) {
            nodesWithoutXvfb.add(node);
          } else {
            nodesOk.add(node);
          }
          log.info("{} {}", node, xvfb);
        } catch (Exception e) {
          log.error("Exception in node {} : {}", node, e.getClass());
          nodesWithException.add(node);
        } finally {
          remoteHost.stop();
        }
      } else {
        log.error("Node down {}", node);
        nodesDown.add(node);
      }
View Full Code Here

TOP

Related Classes of com.kurento.kmf.test.services.RemoteHost

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.