Package org.apache.ambari.eventdb.db

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


    Workflows workflows = EMPTY_WORKFLOWS;
    PostgresConnector conn = null;
    try {
      conn = getConnector();
      if (field == null)
        workflows = conn.fetchWorkflows();
      else {
        field = field.toUpperCase();
        if ("ELAPSEDTIME".equals(field))
          field = "DURATION";
        workflows = conn.fetchWorkflows(WorkflowFields.valueOf(field), sortDir.toUpperCase().equals(PostgresConnector.SORT_ASC), offset, limit);
View Full Code Here


        workflows = conn.fetchWorkflows();
      else {
        field = field.toUpperCase();
        if ("ELAPSEDTIME".equals(field))
          field = "DURATION";
        workflows = conn.fetchWorkflows(WorkflowFields.valueOf(field), sortDir.toUpperCase().equals(PostgresConnector.SORT_ASC), offset, limit);
      }
    } catch (IOException e) {
      LOG.error("Error interacting with RCA database ", e);
      workflows = EMPTY_WORKFLOWS;
    } finally {
View Full Code Here

   
    DataTable table = null;
    PostgresConnector conn = null;
    try {
      conn = getConnector();
      table = conn.fetchWorkflows(start, amount, searchTerm, echo, field, sortAscending, workflowId, workflowName, workflowType, userName, minJobs, maxJobs,
          minInputBytes, maxInputBytes, minOutputBytes, maxOutputBytes, minDuration, maxDuration, minStartTime, maxStartTime, minFinishTime, maxFinishTime);
    } catch (IOException e) {
      LOG.error("Error interacting with RCA database ", e);
    } finally {
      if (conn != null) {
View Full Code Here

    Workflows workflows = EMPTY_WORKFLOWS;
    PostgresConnector conn = null;
    try {
      conn = getConnector();
      if (field == null)
        workflows = conn.fetchWorkflows();
      else {
        field = field.toUpperCase();
        if ("ELAPSEDTIME".equals(field))
          field = "DURATION";
        workflows = conn.fetchWorkflows(WorkflowFields.valueOf(field), sortDir.toUpperCase().equals(PostgresConnector.SORT_ASC), offset, limit);
View Full Code Here

        workflows = conn.fetchWorkflows();
      else {
        field = field.toUpperCase();
        if ("ELAPSEDTIME".equals(field))
          field = "DURATION";
        workflows = conn.fetchWorkflows(WorkflowFields.valueOf(field), sortDir.toUpperCase().equals(PostgresConnector.SORT_ASC), offset, limit);
      }
    } catch (IOException e) {
      e.printStackTrace();
      workflows = EMPTY_WORKFLOWS;
    } finally {
View Full Code Here

   
    DataTable table = null;
    PostgresConnector conn = null;
    try {
      conn = getConnector();
      table = conn.fetchWorkflows(start, amount, searchTerm, echo, field, sortAscending, workflowId, workflowName, workflowType, userName, minJobs, maxJobs,
          minInputBytes, maxInputBytes, minOutputBytes, maxOutputBytes, minDuration, maxDuration, minStartTime, maxStartTime);
    } catch (IOException e) {
      e.printStackTrace();
    } finally {
      if (conn != null) {
View Full Code Here

    Workflows workflows = EMPTY_WORKFLOWS;
    PostgresConnector conn = null;
    try {
      conn = getConnector();
      if (field == null)
        workflows = conn.fetchWorkflows();
      else {
        field = field.toUpperCase();
        if ("ELAPSEDTIME".equals(field))
          field = "DURATION";
        workflows = conn.fetchWorkflows(WorkflowFields.valueOf(field), sortDir.toUpperCase().equals(PostgresConnector.SORT_ASC), offset, limit);
View Full Code Here

        workflows = conn.fetchWorkflows();
      else {
        field = field.toUpperCase();
        if ("ELAPSEDTIME".equals(field))
          field = "DURATION";
        workflows = conn.fetchWorkflows(WorkflowFields.valueOf(field), sortDir.toUpperCase().equals(PostgresConnector.SORT_ASC), offset, limit);
      }
    } catch (IOException e) {
      LOG.error("Error interacting with RCA database ", e);
      workflows = EMPTY_WORKFLOWS;
    } finally {
View Full Code Here

   
    DataTable table = null;
    PostgresConnector conn = null;
    try {
      conn = getConnector();
      table = conn.fetchWorkflows(start, amount, searchTerm, echo, field, sortAscending, workflowId, workflowName, workflowType, userName, minJobs, maxJobs,
          minInputBytes, maxInputBytes, minOutputBytes, maxOutputBytes, minDuration, maxDuration, minStartTime, maxStartTime, minFinishTime, maxFinishTime);
    } catch (IOException e) {
      LOG.error("Error interacting with RCA database ", e);
    } finally {
      if (conn != null) {
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.