Examples of fetchJobDetails()


Examples of org.apache.ambari.eventdb.db.PostgresConnector.fetchJobDetails()

    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);
View Full Code Here

Examples of org.apache.ambari.eventdb.db.PostgresConnector.fetchJobDetails()

    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) {
View Full Code Here

Examples of org.apache.ambari.eventdb.db.PostgresConnector.fetchJobDetails()

  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) {
View Full Code Here

Examples of org.apache.ambari.eventdb.db.PostgresConnector.fetchJobDetails()

    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);
View Full Code Here

Examples of org.apache.ambari.eventdb.db.PostgresConnector.fetchJobDetails()

    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) {
View Full Code Here

Examples of org.apache.ambari.server.controller.internal.JobResourceProvider.JobFetcher.fetchJobDetails()

    Resource.Type type = Resource.Type.Job;
    Set<String> propertyIds = PropertyHelper.getPropertyIds(type);

    JobFetcher jobFetcher = createMock(JobFetcher.class);
    expect(jobFetcher.fetchJobDetails(propertyIds, null, "workflow2", null))
        .andReturn(expected).once();
    replay(jobFetcher);

    Map<Resource.Type,String> keyPropertyIds = PropertyHelper
        .getKeyPropertyIds(type);
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.