Package com.dianping.cat.home.dal.report

Examples of com.dianping.cat.home.dal.report.Overload


        try {
          int reportId = content.getReportId();
          double contentLength = content.getContentLength();

          if (contentLength >= CapacityUpdater.CAPACITY) {
            Overload overload = m_overloadDao.createLocal();

            overload.setReportId(reportId);
            overload.setReportSize(contentLength);
            overload.setReportType(CapacityUpdater.HOURLY_TYPE);

            HourlyReport hourlyReport;
            try {
              hourlyReport = m_hourlyReportDao.findByPK(reportId, HourlyReportEntity.READSET_FULL);
              overload.setPeriod(hourlyReport.getPeriod());
              m_overloadDao.insert(overload);

            } catch (DalNotFoundException e) {
            } catch (Exception e) {
              Cat.logError(e);
View Full Code Here


        try {
          int reportId = content.getReportId();
          double contentLength = content.getContentLength();

          if (contentLength >= CapacityUpdater.CAPACITY) {
            Overload overload = m_overloadDao.createLocal();

            overload.setReportId(reportId);
            overload.setReportSize(contentLength);
            overload.setReportType(CapacityUpdater.MONTHLY_TYPE);

            try {
              MonthlyReport report = m_monthlyReportDao.findByPK(reportId, MonthlyReportEntity.READSET_FULL);
              overload.setPeriod(report.getPeriod());
              m_overloadDao.insert(overload);
            } catch (DalNotFoundException e) {
            } catch (Exception e) {
              Cat.logError(e);
            }
View Full Code Here

        try {
          int reportId = content.getReportId();
          double contentLength = content.getContentLength();

          if (contentLength >= CapacityUpdater.CAPACITY) {
            Overload overload = m_overloadDao.createLocal();

            overload.setReportId(reportId);
            overload.setReportSize(contentLength);
            overload.setReportType(CapacityUpdater.WEEKLY_TYPE);

            try {
              WeeklyReport report = m_weeklyReportDao.findByPK(reportId, WeeklyReportEntity.READSET_FULL);
              overload.setPeriod(report.getPeriod());
              m_overloadDao.insert(overload);
            } catch (DalNotFoundException e) {
            } catch (Exception e) {
              Cat.logError(e);
            }
View Full Code Here

        try {
          int reportId = content.getReportId();
          double contentLength = content.getContentLength();

          if (contentLength >= CapacityUpdater.CAPACITY) {
            Overload overload = m_overloadDao.createLocal();

            overload.setReportId(reportId);
            overload.setReportSize(contentLength);
            overload.setReportType(CapacityUpdater.DAILY_TYPE);

            try {
              DailyReport report = m_dailyReportDao.findByPK(reportId, DailyReportEntity.READSET_FULL);
              overload.setPeriod(report.getPeriod());
              m_overloadDao.insert(overload);
            } catch (DalNotFoundException e) {
            } catch (Exception e) {
              Cat.logError(e);
            }
View Full Code Here

TOP

Related Classes of com.dianping.cat.home.dal.report.Overload

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.