Package com.dianping.cat.report.service

Examples of com.dianping.cat.report.service.ReportServiceManager


    builder.buildHourlyTask(Constants.REPORT_UTILIZATION, "cat", period);
  }

  @Test
  public void testStateReportBuilder() throws Exception {
    ReportServiceManager service = lookup(ReportServiceManager.class);
    Date date = TimeHelper.getCurrentMonth();
    long start = date.getTime();
    long end = System.currentTimeMillis();
    HistoryStateReportMerger merger = new HistoryStateReportMerger(new StateReport("cat"));

    for (; start < end; start = start + TimeHelper.ONE_DAY) {
      StateReport stateReport = service.queryStateReport("cat", new Date(start), new Date(start + TimeHelper.ONE_DAY));

      stateReport.accept(merger);
    }
    StateReport report = merger.getStateReport();
    new ClearDetailInfo().visitStateReport(report);
View Full Code Here


    reportFacade.builderReport(task);
  }

  @Test
  public void test1() throws Exception {
    ReportServiceManager service = lookup(ReportServiceManager.class);
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    RouterConfig report1 = service.queryRouterConfigReport(Constants.CAT, sdf.parse(day3), sdf.parse(day4));

    RouterConfig report2 = service.queryRouterConfigReport(Constants.CAT, sdf.parse(day3), sdf.parse(day4));

    Assert.assertEquals(report1.toString(), report2.toString());
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.report.service.ReportServiceManager

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.