Examples of Jobs


Examples of com.google.api.services.bigquery.Bigquery.Jobs

  return dataset;
}

Jobs getJobs(Bigquery bigquery) {
  // no exception?
  Jobs jobs = bigquery.jobs(); // An accessor for creating requests from the Jobs collection.
  return jobs;
}
View Full Code Here

Examples of com.google.caja.plugin.Jobs

    // namespace from parent.
    assertTrue(mq.getMessages().isEmpty());
  }

  private void assertFixed(String golden, Job... inputs) {
    Jobs jobs = new Jobs(mc, mq, new PluginMeta());
    for (Job input : inputs) {
      jobs.getJobs().add(JobEnvelope.of(input));
    }
    new LegacyNamespaceFixupStage().apply(jobs);
    StringBuilder sb = new StringBuilder();
    for (JobEnvelope env : jobs.getJobs()) {
      sb.append(render(env.job.getRoot()));
      sb.append('\n');
    }
    assertEquals(golden, sb.toString().trim());
  }
View Full Code Here

Examples of com.google.caja.plugin.Jobs

   * @param outputJobs expected jobs after {@link #runPipeline} has been
   *     invoked.
   */
  protected void assertPipeline(JobStub inputJob, JobStub... outputJobs)
      throws Exception {
    Jobs jobs = new Jobs(mc, mq, meta);
    parseJob(inputJob, jobs);
    assertTrue(runPipeline(jobs));
    assertOutputJobs(outputJobs, jobs);
  }
View Full Code Here

Examples of com.google.caja.plugin.Jobs

    assertOutputJobs(outputJobs, jobs);
  }

  protected void assertPipelineFails(JobStub inputJob, JobStub... outputJobs)
      throws Exception {
    Jobs jobs = new Jobs(mc, mq, meta);
    parseJob(inputJob, jobs);
    assertFalse(runPipeline(jobs));
    assertOutputJobs(outputJobs, jobs);
  }
View Full Code Here

Examples of org.apache.ambari.eventdb.model.Jobs

  @GET
  @Produces(MediaType.APPLICATION_JSON)
  @Path("/job")
  public Jobs getJobs(@QueryParam("workflowId") String workflowId, @DefaultValue("-1") @QueryParam("startTime") long minFinishTime,
      @DefaultValue("-1") @QueryParam("endTime") long maxStartTime) {
    Jobs jobs = new Jobs();
    PostgresConnector conn = null;
    try {
      conn = getConnector();
      if (workflowId != null)
        jobs.setJobs(conn.fetchJobDetails(workflowId));
      else if (maxStartTime >= minFinishTime)
        jobs.setJobs(conn.fetchJobDetails(minFinishTime, maxStartTime));
    } catch (IOException e) {
      LOG.error("Error interacting with RCA database ", e);
      jobs.setJobs(EMPTY_JOBS);
    } finally {
      if (conn != null) {
        conn.close();
      }
    }
View Full Code Here

Examples of org.apache.ambari.eventdb.model.Jobs

 
  @GET
  @Produces(MediaType.APPLICATION_JSON)
  @Path("/job")
  public Jobs getJobs(@QueryParam("workflowId") String workflowId) {
    Jobs jobs = new Jobs();
    PostgresConnector conn = null;
    try {
      conn = getConnector();
      jobs.setJobs(conn.fetchJobDetails(workflowId));
    } catch (IOException e) {
      e.printStackTrace();
      jobs.setJobs(EMPTY_JOBS);
    } finally {
      if (conn != null) {
        conn.close();
      }
    }
View Full Code Here

Examples of org.apache.ambari.eventdb.model.Jobs

  @GET
  @Produces(MediaType.APPLICATION_JSON)
  @Path("/job")
  public Jobs getJobs(@QueryParam("workflowId") String workflowId, @DefaultValue("-1") @QueryParam("startTime") long minFinishTime,
      @DefaultValue("-1") @QueryParam("endTime") long maxStartTime) {
    Jobs jobs = new Jobs();
    PostgresConnector conn = null;
    try {
      conn = getConnector();
      if (workflowId != null)
        jobs.setJobs(conn.fetchJobDetails(workflowId));
      else if (maxStartTime >= minFinishTime)
        jobs.setJobs(conn.fetchJobDetails(minFinishTime, maxStartTime));
    } catch (IOException e) {
      LOG.error("Error interacting with RCA database ", e);
      jobs.setJobs(EMPTY_JOBS);
    } finally {
      if (conn != null) {
        conn.close();
      }
    }
View Full Code Here

Examples of org.springframework.xd.integration.fixtures.Jobs

  }

  @Bean
  public Jobs jobs() {
    return new Jobs(xdEnvironment());
  }
View Full Code Here

Examples of water.api.JobsHandler.Jobs

      for (int i = 0; i < this.jobs.length; i++)
        jobs[i] = this.jobs[i].createImpl();
    } else {
      jobs = new Job[0];
    }
    return new Jobs(this.key, jobs);
  }
View Full Code Here

Examples of water.api.JobsHandler.Jobs

    // Output
    public Job[] jobs;
  }

  @Override public void compute2() { throw H2O.fail(); }                       // TODO: what to do about Key here?
  Schema list(int version, Jobs jobs) { return schema(version).fillFromImpl(new Jobs(null, Job.jobs())); } // All work in schema
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.