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

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


    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


    protected Calendar getLatestYearlySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
        try {
            return client.getLatestSequenceStatSummaryPeriod(getTimeInterval(), sequence);
        } 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.getLatestSequenceStatSummaryPeriod(getTimeInterval(), sequence);
        } finally {
            client.cleanup();
        }
    }

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

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

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

    protected Calendar getLatestDailySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
        try {
            return client.getLatestSequenceStatSummaryPeriod(getTimeInterval(), sequence);
        } finally {
            client.cleanup();
        }
    }

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

    protected Calendar getLatestHourlySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
        try {
            return client.getLatestSequenceStatSummaryPeriod(getTimeInterval(), sequence);
        } finally {
            client.cleanup();
        }
    }

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

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

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

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

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

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

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

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

  public void addEndpointStatQuarterlySummary(MediationSummaryStatistic 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.