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

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


            serviceSummaryDSClient.cleanup();
        }
    }

    protected Calendar getLatestQuarterlySummaryTime() throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
        try {
            return serviceSummaryDSClient.getLatestServerStatSummaryPeriod(getTimeInterval(), server.getId());
        } finally {
            serviceSummaryDSClient.cleanup();
        }
    }
View Full Code Here


            serviceSummaryDSClient.cleanup();
        }
    }

    protected Calendar getLatestMonthlySummaryTime() throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
        try {
            return serviceSummaryDSClient.getLatestServerStatSummaryPeriod(getTimeInterval(), server.getId());
        } finally {
            serviceSummaryDSClient.cleanup();
        }
    }
View Full Code Here

            serviceSummaryDSClient.cleanup();
        }
    }

    protected Calendar getLatestDailySummaryTime() throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
        try {
            return serviceSummaryDSClient.getLatestServerStatSummaryPeriod(getTimeInterval(), server.getId());
        } finally {
            serviceSummaryDSClient.cleanup();
        }
    }
View Full Code Here

            serviceSummaryDSClient.cleanup();
        }
    }

    protected Calendar getLatestHourlySummaryTime() throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
        try {
            return serviceSummaryDSClient.getLatestServerStatSummaryPeriod(getTimeInterval(), server.getId());
        } finally {
            serviceSummaryDSClient.cleanup();
        }
    }
View Full Code Here

    }
  }

  public SummaryStatistic getServerStatMonthlySummary(int serverId, BAMCalendar startTime,
      BAMCalendar endTime) throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = null;
    try {
      serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
      return serviceSummaryDSClient.getServerStatMonthlySummary(serverId, startTime, endTime);
    } catch (Exception e) {
      throw new BAMException("Could not retrieve monthly summary for server: " + serverId+ " start time: " +
                    startTime.getBAMTimestamp(), e);
    } finally {
      if (serviceSummaryDSClient != null) {
          serviceSummaryDSClient.cleanup();
      }
    }
  }
View Full Code Here

    }
  }

  public SummaryStatistic getServerStatQuarterlySummary(int serverId, BAMCalendar startTime,
      BAMCalendar endTime) throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = null;
    try {
      serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
      return serviceSummaryDSClient.getServerStatQuarterlySummary(serverId, startTime, endTime);
    } catch (Exception e) {
      throw new BAMException("Could not retrieve quarterly summary for server: " + serverId+ " start time: " +
                    startTime.getBAMTimestamp(), e);
    } finally {
      if (serviceSummaryDSClient != null) {
          serviceSummaryDSClient.cleanup();
      }
    }
  }
View Full Code Here

    }
  }

  public SummaryStatistic getServerStatYearlySummary(int serverId, BAMCalendar startTime,
      BAMCalendar endTime) throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = null;
    try {
      serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
      return serviceSummaryDSClient.getServerStatYearlySummary(serverId, startTime, endTime);
    } catch (Exception e) {
      throw new BAMException("Could not retrieve yearly summary for server: " + serverId+ " start time: " +
                    startTime.getBAMTimestamp(), e);
    } finally {
      if (serviceSummaryDSClient != null) {
          serviceSummaryDSClient.cleanup();
      }
    }
  }
View Full Code Here

      }
    }
  }

  public void addServerStatHourlySummary(SummaryStatistic stat) throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = null;
    try {
      serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
      serviceSummaryDSClient.addServerStatHourlySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding hourly server summary stat failed", e);
    } finally {
      if (serviceSummaryDSClient != null) {
          serviceSummaryDSClient.cleanup();
      }
    }
  }
View Full Code Here

      }
    }
  }

  public void addServerStatDailySummary(SummaryStatistic stat) throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = null;
    try {
      serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
      serviceSummaryDSClient.addServerStatDailySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding daily server summary stat failed", e);
    } finally {
      if (serviceSummaryDSClient != null) {
          serviceSummaryDSClient.cleanup();
      }
    }
  }
View Full Code Here

      }
    }
  }

  public void addServerStatMonthlySummary(SummaryStatistic stat) throws BAMException {
        BAMServiceSummaryDSClient serviceSummaryDSClient = null;
    try {
      serviceSummaryDSClient = BAMUtil.getBAMServiceSummaryDSClient();
      serviceSummaryDSClient.addServerStatMonthlySummary(stat);
    } catch (Exception e) {
      throw new BAMException("Adding monthly server summary stat failed", e);
    } finally {
      if (serviceSummaryDSClient != null) {
          serviceSummaryDSClient.cleanup();
      }
    }
  }
View Full Code Here

TOP

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

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.