Examples of fetchWorkflows()


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

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

        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

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

   
    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

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

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

        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

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

   
    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

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

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

        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

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

   
    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

Examples of org.apache.ambari.server.controller.internal.WorkflowResourceProvider.WorkflowFetcher.fetchWorkflows()

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

    WorkflowFetcher workflowFetcher = createMock(WorkflowFetcher.class);
    expect(workflowFetcher.fetchWorkflows(propertyIds, "Cluster100", null))
        .andReturn(expected).once();
    replay(workflowFetcher);

    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.