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

Examples of org.wso2.carbon.bam.common.clients.BAMSummaryGenerationDSClient


            client.cleanup();
        }
    }

    protected Calendar getLatestMonthlySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
        try {
            return client.getLatestProxyServiceStatSummaryPeriod(getTimeInterval(), proxyService);
        } finally {
            client.cleanup();
        }
    }
View Full Code Here


    }
  }

  public MediationSummaryStatistic getSequenceStatMonthlySummary(int serverId, String sequence,
      String direction, BAMCalendar startTime, BAMCalendar endTime) throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();

      return client.getSequenceStatMonthlySummary(serverId, sequence, direction, startTime, endTime);
    } 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();
      }
    }
  }
View Full Code Here

            client.cleanup();
        }
    }

    protected Calendar getLatestDailySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
        try {
            return client.getLatestProxyServiceStatSummaryPeriod(getTimeInterval(), proxyService);
        } finally {
            client.cleanup();
        }
    }
View Full Code Here

    }
  }

  public MediationSummaryStatistic getSequenceStatQuarterlySummary(int serverId, String sequence,
      String direction, BAMCalendar startTime, BAMCalendar endTime) throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();

      return client.getSequenceStatQuarterlySummary(serverId, sequence, direction, startTime, endTime);
    } 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();
      }
    }
  }
View Full Code Here

            client.cleanup();
        }
    }

    protected Calendar getLatestHourlySummaryTime() throws BAMException {
      BAMSummaryGenerationDSClient client = BAMUtil.getBAMSummaryGenerationDSClient();
        try {
            return client.getLatestProxyServiceStatSummaryPeriod(getTimeInterval(), proxyService);
        } finally {
            client.cleanup();
        }
    }
View Full Code Here

    }
  }

  public MediationSummaryStatistic getSequenceStatYearlySummary(int serverId, String sequence,
      String direction, BAMCalendar startTime, BAMCalendar endTime) throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();

      return client.getSequenceStatYearlySummary(serverId, sequence, direction, startTime, endTime);
    } 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();
      }
    }
  }
View Full Code Here

      }
    }
  }

  public void addSequenceStatHourlySummary(MediationSummaryStatistic stat) throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();
      client.addSequenceStatHourlySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding hourly mediation summary stat failed", e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }
View Full Code Here

      }
    }
  }

  public void addSequenceStatDailySummary(MediationSummaryStatistic stat) throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();
      client.addSequenceStatDailySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding hourly mediation summary stat failed", e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }
View Full Code Here

      }
    }
  }

  public void addSequenceStatMonthlySummary(MediationSummaryStatistic stat) throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();
      client.addSequenceStatMonthlySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding monthly mediation summary stat failed", e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }
View Full Code Here

      }
    }
  }

  public void addSequenceStatQuarterlySummary(MediationSummaryStatistic stat) throws BAMException {
        BAMSummaryGenerationDSClient client = null;
    try {
            client = BAMUtil.getBAMSummaryGenerationDSClient();
      client.addSequenceStatQuarterlySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding quarterly mediation summary stat failed", e);
    } finally {
      if (client != null) {
          client.cleanup();
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.bam.common.clients.BAMSummaryGenerationDSClient

Copyright © 2018 www.massapicom. 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.