Package org.wso2.carbon.bam.common.clients

Examples of org.wso2.carbon.bam.common.clients.BAMDataCollectionDSClient.cleanup()


      client.addProxyServiceStatDailySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding hourly mediation summary stat failed", e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }

  public void addProxyServiceStatMonthlySummary(MediationSummaryStatistic stat) throws BAMException {
View Full Code Here


      client.addProxyServiceStatMonthlySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding monthly mediation summary stat failed", e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }

  public void addProxyServiceStatQuarterlySummary(MediationSummaryStatistic stat) throws BAMException {
View Full Code Here

      client.addProxyServiceStatQuarterlySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding quarterly mediation summary stat failed", e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }

  public void addProxyServiceStatYearlySummary(MediationSummaryStatistic stat) throws BAMException {
View Full Code Here

      client.addProxyServiceStatYearlySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding yearly mediation summary stat failed", e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }

  // ======================= SEQUENCE ========================
View Full Code Here

    } catch (Exception e) {
      throw new BAMException("Could not retrieve hourly summary for serverId: " + serverId
          + "sequence: " + sequence + direction + " start time: " + startTime.getBAMTimestamp(), e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }

  public void deleteServerSequenceUserData(int serverId, String sequence, String direction,
View Full Code Here

    } catch (Exception e) {
      throw new BAMException("Could not delete hourly summary for serverId: " + serverId + "sequence: "
          + sequence + direction + " end time: " + endTime.getBAMTimestamp(), e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }

  public MediationSummaryStatistic getSequenceStatDailySummary(int serverId, String sequence,
View Full Code Here

    protected Calendar getLatestYearlySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
        try {
            return client.getLatestProxyServiceStatSummaryPeriod(getTimeInterval(), proxyService);
        } finally {
            client.cleanup();
        }
    }

    protected Calendar getLatestQuarterlySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
View Full Code Here

    protected Calendar getLatestQuarterlySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
        try {
            return client.getLatestProxyServiceStatSummaryPeriod(getTimeInterval(), proxyService);
        } finally {
            client.cleanup();
        }
    }

    protected Calendar getLatestMonthlySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
View Full Code Here

    } catch (Exception e) {
      throw new BAMException("Could not retrieve daily summary for serverId: " + serverId
          + "sequence: " + sequence + direction + " start time: " + startTime.getBAMTimestamp(), e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }

  public MediationSummaryStatistic getSequenceStatMonthlySummary(int serverId, String sequence,
View Full Code Here

    protected Calendar getLatestMonthlySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
        try {
            return client.getLatestProxyServiceStatSummaryPeriod(getTimeInterval(), proxyService);
        } finally {
            client.cleanup();
        }
    }

    protected Calendar getLatestDailySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
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.