Examples of HourlyReportContent


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

    try {
      report.setContent("");
      m_hourlyReportDao.insert(report);

      int id = report.getId();
      HourlyReportContent proto = m_hourlyReportContentDao.createLocal();

      proto.setReportId(id);
      proto.setContent(content);
      m_hourlyReportContentDao.insert(proto);
      return true;
    } catch (DalException e) {
      Cat.logError(e);
      return false;
View Full Code Here

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

      return new BugReport(domain);
    }
  }

  private BugReport 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 BugReport(domain);
    }
  }
View Full Code Here

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

      return new MatrixReport(domain);
    }
  }

  private MatrixReport 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 MatrixReport(domain);
    }
  }
View Full Code Here

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

  public HeartbeatReport queryDailyReport(String domain, Date start, Date end) {
    throw new RuntimeException("Heartbeat report don't support daily report");
  }

  private HeartbeatReport 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 HeartbeatReport(domain);
    }
  }
View Full Code Here

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

      return new UtilizationReport(domain);
    }
  }

  private UtilizationReport 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 UtilizationReport(domain);
    }
  }
View Full Code Here

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

  public TopReport queryDailyReport(String domain, Date start, Date end) {
    throw new RuntimeException("Top report don't support daily report");
  }

  private TopReport 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 TopReport(domain);
    }
  }
View Full Code Here

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

  public NetGraphSet queryDailyReport(String domain, Date start, Date end) {
    throw new RuntimeException("net topology report don't support daily report");
  }
 
  private NetGraphSet queryFromHourlyBinary(int id) throws DalException {
    HourlyReportContent content = m_hourlyReportContentDao.findByPK(id, HourlyReportContentEntity.READSET_FULL);

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

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

      return new ServiceReport(domain);
    }
  }

  private ServiceReport 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 ServiceReport(domain);
    }
  }
View Full Code Here

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

      return new StateReport(domain);
    }
  }

  private StateReport 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 StateReport(domain);
    }
  }
View Full Code Here

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

      return new AlertReport(domain);
    }
  }

  private AlertReport 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 AlertReport(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.