Examples of heartbeat()


Examples of com.google.jstestdriver.SlaveBrowser.heartBeat()

    if (ids != null && ids[0] != null) {
      String id = ids[0];
      SlaveBrowser browser = capturedBrowsers.getBrowser(id);

      if (browser != null) {
        browser.heartBeat();
        logger.trace("browser heartbeat {}", browser);
        if (browser.getCommandRunning() == null) {
          writer.write("Waiting...");
        } else {
          writer.write("Running: " + browser.getCommandRunning());
View Full Code Here

Examples of com.google.jstestdriver.SlaveBrowser.heartBeat()

    if (browser == null) {
      // re-capture browser as standalone
      response.sendRedirect(
          prefix.prefixPath("/capture/" + CaptureHandler.RUNNER_TYPE + "/" + RunnerType.BROWSER + "/timeout/-1"));
    } else {
      browser.heartBeat();
      // start test running
      response.setContentType(MimeTypes.TEXT_HTML_UTF_8);
      final HtmlWriter writer = new HtmlWriter(response.getWriter(), prefix);
      request.writeDTD(writer);
      pages.get(request.getPageType()).render(writer, request);
View Full Code Here

Examples of com.google.jstestdriver.SlaveBrowser.heartBeat()

    if (browser == null) {
      LOGGER.warn("Invalid ID in: {}", request);
      // re-capture browser as standalone
      response.sendRedirect("/capture/" + RUNNER_TYPE + "/" + RunnerType.STANDALONE.toString() + "/timeout/3600000");
    } else {
      browser.heartBeat();
      response.setContentType(MimeTypes.TEXT_HTML_UTF_8);
      final HtmlWriter writer = new HtmlWriter(response.getWriter(), prefix);
      request.writeDTD(writer);
      pages.get(request.getPageType()).render(writer, request);
      // start test running
View Full Code Here

Examples of com.xeiam.xchange.coinsetter.service.polling.CoinsetterClientSessionServiceRaw.heartbeat()

    CoinsetterClientSession clientSession = clientSessionService.login(username, password, ipAddress);
    log.info("Client session: {}", clientSession);

    for (int i = 0; i < 2; i++) {
      TimeUnit.SECONDS.sleep(30);
      CoinsetterResponse heartbeatResponse = clientSessionService.heartbeat(clientSession.getUuid());
      log.info("hearbeat: {}", heartbeatResponse);
    }

    CoinsetterResponse logoutResponse = clientSessionService.logout(clientSession.getUuid());
    log.info("logout: {}", logoutResponse);
View Full Code Here

Examples of com.xeiam.xchange.coinsetter.service.polling.CoinsetterClientSessionServiceRaw.heartbeat()

    CoinsetterResponse logoutResponse = clientSessionService.logout(clientSession.getUuid());
    log.info("logout: {}", logoutResponse);

    try {
      CoinsetterResponse heartbeatResponse = clientSessionService.heartbeat(clientSession.getUuid());
      log.info("hearbeat: {}", heartbeatResponse);
    } catch (CoinsetterException e) {
      log.info("{}", e.getMessage());
    }
  }
View Full Code Here

Examples of org.apache.geronimo.farm.service.NodeServiceVitals.heartbeat()

                } catch (URISyntaxException e) {
                    // don't continuously log this
                }

            } else {
                vitals.heartbeat();

                if (vitals.doRecovery()) {
                    fireServiceAddEvent(vitals.getService().getUri());
                }
            }
View Full Code Here

Examples of org.apache.hadoop.hbase.master.SplitLogManager.Task.heartbeat()

    Task task = findOrCreateOrphanTask(path);
    if (new_version != task.last_version) {
      if (task.isUnassigned()) {
        LOG.info("task " + path + " acquired by " + workerName);
      }
      task.heartbeat(EnvironmentEdgeManager.currentTime(), new_version, workerName);
      SplitLogCounters.tot_mgr_heartbeat.incrementAndGet();
    } else {
      // duplicate heartbeats - heartbeats w/o zk node version
      // changing - are possible. The timeout thread does
      // getDataSetWatch() just to check whether a node still
View Full Code Here

Examples of org.apache.hadoop.hbase.master.SplitLogManager.Task.heartbeat()

    Task task = findOrCreateOrphanTask(path);
    if (new_version != task.last_version) {
      if (task.isUnassigned()) {
        LOG.info("task " + path + " acquired by " + workerName);
      }
      task.heartbeat(EnvironmentEdgeManager.currentTime(), new_version, workerName);
      SplitLogCounters.tot_mgr_heartbeat.incrementAndGet();
    } else {
      // duplicate heartbeats - heartbeats w/o zk node version
      // changing - are possible. The timeout thread does
      // getDataSetWatch() just to check whether a node still
View Full Code Here

Examples of org.apache.hadoop.hive.ql.exec.Heartbeater.heartbeat()

    while (!rj.isComplete()) {
      try {
        Thread.sleep(pullInterval);
      } catch (InterruptedException e) {
      }
      heartbeater.heartbeat();

      if (initializing && rj.getJobState() == JobStatus.PREP) {
        // No reason to poll untill the job is initialized
        continue;
      } else {
View Full Code Here

Examples of org.apache.hadoop.hive.ql.exec.Heartbeater.heartbeat()

      try {
        status = dagClient.getDAGStatus(opts);
        Map<String, Progress> progressMap = status.getVertexProgress();
        DAGStatus.State state = status.getState();
        heartbeater.heartbeat();

        if (state != lastState || state == RUNNING) {
          lastState = state;

          switch(state) {
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.