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

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


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

  // ======================= ENDPOINT ========================
View Full Code Here


    protected Calendar getLatestYearlySummaryTime() throws BAMException {
      BAMServiceSummaryDSClient serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
        try {
            return serviceSummaryDSClient.getLatestOperationStatSummaryPeriod(getTimeInterval(), operation.getOperationID());
        } finally {
            serviceSummaryDSClient.cleanup();
        }
    }

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

    protected Calendar getLatestQuarterlySummaryTime() throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
        try {
            return serviceSummaryDSClient.getLatestOperationStatSummaryPeriod(getTimeInterval(), operation.getOperationID());
        } finally {
            serviceSummaryDSClient.cleanup();
        }
    }

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

        BAMServiceSummaryDSClient serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
        try {
            return serviceSummaryDSClient.getLatestOperationStatSummaryPeriod(getTimeInterval(),
                                                                              operation.getOperationID());
        } finally {
            serviceSummaryDSClient.cleanup();
        }
    }

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

        BAMServiceSummaryDSClient serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
        try {
            return serviceSummaryDSClient.getLatestOperationStatSummaryPeriod(getTimeInterval(),
                                                                              operation.getOperationID());
        } 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.getLatestOperationStatSummaryPeriod(getTimeInterval(), operation.getOperationID());
        } finally {
            serviceSummaryDSClient.cleanup();
        }
    }

    protected String getInstanceInfo() {
        return "Server: " + server.getServerURL() + ", Service: " + service.getName() + ", Operation:"
View Full Code Here

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

  public SummaryStatistic getServiceStatDailySummary(int serviceId, BAMCalendar startTime,
View Full Code Here

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

  public SummaryStatistic getServiceStatMonthlySummary(int serviceId, BAMCalendar startTime,
View Full Code Here

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

  public SummaryStatistic getServiceStatQuarterlySummary(int serviceId, BAMCalendar startTime,
View Full Code Here

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

  public SummaryStatistic getServiceStatYearlySummary(int serviceId, BAMCalendar startTime,
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.