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

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


    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

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

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

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

  // ======================= PROXY ========================
View Full Code Here

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

  public void deleteServerProxyServiceUserData(int serverId, String proxyService, String direction,
View Full Code Here

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

  public MediationSummaryStatistic getProxyServiceStatDailySummary(int serverId, String proxyService,
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.