Examples of BAMSummaryGenerationDSClient


Examples of org.wso2.carbon.bam.common.clients.BAMSummaryGenerationDSClient

            client.cleanup();
        }
    }

    protected Calendar getLatestHourlySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
        try {
            return client.getLatestProxyServiceStatSummaryPeriod(getTimeInterval(), proxyService);
        } finally {
            client.cleanup();
        }
    }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMSummaryGenerationDSClient

    }
  }

  public MediationSummaryStatistic getSequenceStatYearlySummary(int serverId, String sequence,
      String direction, BAMCalendar startTime, BAMCalendar endTime) throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();

      return client.getSequenceStatYearlySummary(serverId, sequence, direction, startTime, endTime);
    } catch (Exception e) {
      throw new BAMException("Could not retrieve yearly summary for serverId: " + serverId
          + "sequence: " + sequence + direction + " start time: " + startTime.getBAMTimestamp(), e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMSummaryGenerationDSClient

      }
    }
  }

  public void addSequenceStatHourlySummary(MediationSummaryStatistic stat) throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();
      client.addSequenceStatHourlySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding hourly mediation summary stat failed", e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMSummaryGenerationDSClient

      }
    }
  }

  public void addSequenceStatDailySummary(MediationSummaryStatistic stat) throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();
      client.addSequenceStatDailySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding hourly mediation summary stat failed", e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMSummaryGenerationDSClient

      }
    }
  }

  public void addSequenceStatMonthlySummary(MediationSummaryStatistic stat) throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();
      client.addSequenceStatMonthlySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding monthly mediation summary stat failed", e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMSummaryGenerationDSClient

      }
    }
  }

  public void addSequenceStatQuarterlySummary(MediationSummaryStatistic stat) throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();
      client.addSequenceStatQuarterlySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding quarterly mediation summary stat failed", e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMSummaryGenerationDSClient

      }
    }
  }

  public void addSequenceStatYearlySummary(MediationSummaryStatistic stat) throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();
      client.addSequenceStatYearlySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding yearly mediation summary stat failed", e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMSummaryGenerationDSClient

    }
  }

  public void deleteServerData(int serverId, BAMCalendar startTime, BAMCalendar endTime)
      throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();
      client.deleteServerData(serverId, startTime, endTime);
    } catch (Exception e) {
      throw new BAMException("Could not delete hourly summary for serverId: " + serverId
          + " end time: " + endTime.getBAMTimestamp(), e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMSummaryGenerationDSClient

    }
  }

  public void deleteServiceData(int serviceId, BAMCalendar startTime, BAMCalendar endTime)
      throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();
      client.deleteServiceData(serviceId, startTime, endTime);
    } catch (Exception e) {
      throw new BAMException("Could not delete hourly summary for serviceId: " + serviceId
          + " end time: " + endTime.getBAMTimestamp(), e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }
View Full Code Here

Examples of org.wso2.carbon.bam.common.clients.BAMSummaryGenerationDSClient

    }
  }

  public void deleteOperationData(int operationId, BAMCalendar startTime, BAMCalendar endTime)
      throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();
      client.deleteOperationData(operationId, startTime, endTime);
    } catch (Exception e) {
      throw new BAMException("Could not delete hourly summary for operationId: " + operationId
          + " end time: " + endTime.getBAMTimestamp(), e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }
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.