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

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


    protected Calendar getLatestMonthlySummaryTime() throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
        try {
            return serviceSummaryDSClient.getLatestServerStatSummaryPeriod(getTimeInterval(), server.getId());
        } finally {
            serviceSummaryDSClient.cleanup();
        }
    }

    protected Calendar getLatestDailySummaryTime() throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
View Full Code Here


    protected Calendar getLatestDailySummaryTime() throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
        try {
            return serviceSummaryDSClient.getLatestServerStatSummaryPeriod(getTimeInterval(), server.getId());
        } finally {
            serviceSummaryDSClient.cleanup();
        }
    }

    protected Calendar getLatestHourlySummaryTime() throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
View Full Code Here

    protected Calendar getLatestHourlySummaryTime() throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
        try {
            return serviceSummaryDSClient.getLatestServerStatSummaryPeriod(getTimeInterval(), server.getId());
        } finally {
            serviceSummaryDSClient.cleanup();
        }
    }

    protected String getInstanceInfo() {
        return "Server: " + server.getServerURL();
View Full Code Here

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

  public SummaryStatistic getServerStatMonthlySummary(int serverId, BAMCalendar startTime,
View Full Code Here

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

  public SummaryStatistic getServerStatQuarterlySummary(int serverId, BAMCalendar startTime,
View Full Code Here

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

  public SummaryStatistic getServerStatYearlySummary(int serverId, BAMCalendar startTime,
View Full Code Here

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

  public void addServerStatHourlySummary(SummaryStatistic stat) throws BAMException {
View Full Code Here

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

  public void addServerStatDailySummary(SummaryStatistic stat) throws BAMException {
View Full Code Here

      serviceSummaryDSClient.addServerStatDailySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding daily server summary stat failed", e);
    } finally {
      if (serviceSummaryDSClient != null) {
          serviceSummaryDSClient.cleanup();
      }
    }
  }

  public void addServerStatMonthlySummary(SummaryStatistic stat) throws BAMException {
View Full Code Here

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

  public void addServerStatQuarterlySummary(SummaryStatistic stat) throws BAMException {
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.