Package org.wso2.carbon.mediation.configadmin.stub

Examples of org.wso2.carbon.mediation.configadmin.stub.ConfigServiceAdminStub.cleanup()


    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

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

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

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

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

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

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

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

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

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

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

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

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