Examples of pushEvent()


Examples of com.twitter.ambrose.hive.reporter.EmbeddedAmbroseHiveProgressReporter.pushEvent()

    // a job has been started
    if (job.getId() == null) {
      // job identifier on GUI
      job.setId(AmbroseHiveUtil.asDisplayId(queryId, jobIDStr, nodeId));
      reporter.addJobIdToNodeId(jobIDStr, nodeId);
      reporter.pushEvent(queryId, new Event.JobStartedEvent(dagNode));
    }
    try {
     
      boolean isUpdated = updateJobState();
      if (isUpdated && !reporter.getCompletedJobIds().contains(jobIDStr)) {
View Full Code Here

Examples of com.twitter.ambrose.hive.reporter.EmbeddedAmbroseHiveProgressReporter.pushEvent()

        else {
          event = new Event.JobProgressEvent(dagNode);
        }
        reporter.addJobIdToProgress(jobIDStr, getJobProgress());
        pushWorkflowProgress(queryId, reporter);
        reporter.pushEvent(queryId, event);
      }
    }
    catch (IOException e) {
      LOG.error("Error getting job info!", e);
    }
View Full Code Here

Examples of com.twitter.ambrose.hive.reporter.EmbeddedAmbroseHiveProgressReporter.pushEvent()

        HiveJob job = (HiveJob) dagNode.getJob();
        job.setConfiguration(allConfProps);
        MapReduceJobState mrJobState = getJobState(job);
        mrJobState.setSuccessful(false);
        reporter.addJob((Job) job);
        reporter.pushEvent(queryId, new Event.JobFailedEvent(dagNode));
      }
    }

    reporter.restoreEventStack();
    String sleepTime = System.getProperty(POST_SCRIPT_SLEEP_SECS_PARAM, "10");
View Full Code Here

Examples of net.sourceforge.prowl.api.ProwlClient.pushEvent()

      ProwlEvent event = new DefaultProwlEvent(
          apiKey, "openhab", subject,
          message, normalizedPriority);
     
      try {
        String returnMessage = client.pushEvent(event);
        logger.info(returnMessage);
        success = true;
      }
      catch (ProwlException pe) {
        logger.error("pushing prowl event throws exception", pe);
View Full Code Here

Examples of org.graphstream.ui.graphicGraph.StyleGroupSet.pushEvent()

    assertEquals(1, sC.getStrokeWidth().value, 0);
    assertEquals(1, sD.getStrokeWidth().value, 0);

    // Test global events (events that apply to a whole group or groups).

    sgs.pushEvent("clicked"); // This is normally done automatically by the
                  // GraphicElement

    sA = sgs.getStyleForElement(A);
    sB = sgs.getStyleForElement(B);
    sC = sgs.getStyleForElement(C);
View Full Code Here

Examples of org.graphstream.ui.graphicGraph.StyleGroupSet.pushEvent()

    assertEquals(1, sA.getStrokeWidth().value, 0);
    assertEquals(1, sB.getStrokeWidth().value, 0);
    assertEquals(1, sC.getStrokeWidth().value, 0);
    assertEquals(1, sD.getStrokeWidth().value, 0);

    sgs.pushEvent("clicked"); // Both events at a time.
    sgs.pushEvent("selected"); // They should cascade.

    sA = sgs.getStyleForElement(A);
    sB = sgs.getStyleForElement(B);
    sC = sgs.getStyleForElement(C);
View Full Code Here

Examples of org.graphstream.ui.graphicGraph.StyleGroupSet.pushEvent()

    assertEquals(1, sB.getStrokeWidth().value, 0);
    assertEquals(1, sC.getStrokeWidth().value, 0);
    assertEquals(1, sD.getStrokeWidth().value, 0);

    sgs.pushEvent("clicked"); // Both events at a time.
    sgs.pushEvent("selected"); // They should cascade.

    sA = sgs.getStyleForElement(A);
    sB = sgs.getStyleForElement(B);
    sC = sgs.getStyleForElement(C);
    sD = sgs.getStyleForElement(D);
View Full Code Here

Examples of org.graphstream.ui.graphicGraph.StyleGroupSet.pushEvent()

    assertEquals(10, sA.getStrokeWidth().value, 0);
    assertEquals(10, sB.getStrokeWidth().value, 0);
    assertEquals(10, sC.getStrokeWidth().value, 0);
    assertEquals(10, sD.getStrokeWidth().value, 0);

    sgs.pushEvent("clicked");
    sA = sgs.getStyleForElement(A);
    sB = sgs.getStyleForElement(B);
    sC = sgs.getStyleForElement(C);
    sD = sgs.getStyleForElement(D);
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.