Examples of HourlyReportContent


Examples of com.dianping.cat.core.dal.HourlyReportContent

      return new EventReport(domain);
    }
  }

  private EventReport queryFromHourlyBinary(int id, String domain) throws DalException {
    HourlyReportContent content = m_hourlyReportContentDao.findByPK(id, HourlyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new EventReport(domain);
    }
  }
View Full Code Here

Examples of com.dianping.cat.core.dal.HourlyReportContent

              m_reportDao.insert(r);

              int id = r.getId();
              byte[] binaryContent = m_reportDelegate.buildBinary(report);
              HourlyReportContent content = m_reportContentDao.createLocal();

              content.setReportId(id);
              content.setContent(binaryContent);
              m_reportContentDao.insert(content);
              m_reportDelegate.createHourlyTask(report);
            } catch (Throwable e) {
              t.setStatus(e);
              Cat.getProducer().logError(e);
View Full Code Here

Examples of com.dianping.cat.core.dal.HourlyReportContent

      return new CrossReport(domain);
    }
  }

  private CrossReport queryFromHourlyBinary(int id, String domain) throws DalException {
    HourlyReportContent content = m_hourlyReportContentDao.findByPK(id, HourlyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new CrossReport(domain);
    }
  }
View Full Code Here

Examples of com.dianping.cat.core.dal.HourlyReportContent

      return new ProblemReport(domain);
    }
  }

  private ProblemReport queryFromHourlyBinary(int id, String domain) throws DalException {
    HourlyReportContent content = m_hourlyReportContentDao.findByPK(id, HourlyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new ProblemReport(domain);
    }
  }
View Full Code Here

Examples of com.dianping.cat.core.dal.HourlyReportContent

  public DependencyReport queryDailyReport(String domain, Date start, Date end) {
    throw new UnsupportedOperationException("Dependency report don't support daily report");
  }

  private DependencyReport queryFromHourlyBinary(int id, String domain) throws DalException {
    HourlyReportContent content = m_hourlyReportContentDao.findByPK(id, HourlyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new DependencyReport(domain);
    }
  }
View Full Code Here

Examples of com.dianping.cat.core.dal.HourlyReportContent

      return new TransactionReport(domain);
    }
  }

  private TransactionReport queryFromHourlyBinary(int id, String domain) throws DalException {
    HourlyReportContent content = m_hourlyReportContentDao.findByPK(id, HourlyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new TransactionReport(domain);
    }
  }
View Full Code Here

Examples of com.dianping.cat.core.dal.HourlyReportContent

      return new HeavyReport(domain);
    }
  }

  private HeavyReport queryFromHourlyBinary(int id, String domain) throws DalException {
    HourlyReportContent content = m_hourlyReportContentDao.findByPK(id, HourlyReportContentEntity.READSET_FULL);

    if (content != null) {
      return DefaultNativeParser.parse(content.getContent());
    } else {
      return new HeavyReport(domain);
    }
  }
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.