Package com.dianping.cat.service

Examples of com.dianping.cat.service.HostinfoService.initialize()


  @Test
  public void testWeeklyReport() throws Exception{
    ServiceReportBuilder builder = lookup(ServiceReportBuilder.class);
    HostinfoService hostinfoService = lookup(HostinfoService.class);
   
    hostinfoService.initialize();
    builder.buildWeeklyTask(Constants.REPORT_SERVICE, "cat", new SimpleDateFormat("yyyyMMdd").parse("20130710"));
  }
 
  @Test
  public void testMonthlyReport() throws Exception{
View Full Code Here


  @Test
  public void testMonthlyReport() throws Exception{
    ServiceReportBuilder builder = lookup(ServiceReportBuilder.class);
    HostinfoService hostinfoService = lookup(HostinfoService.class);
   
    hostinfoService.initialize();
    builder.buildMonthlyTask(Constants.REPORT_SERVICE, "cat", new SimpleDateFormat("yyyyMMdd").parse("20130701"));
  }

}
View Full Code Here

  @Test
  public void testHourlyReport() throws Exception{
    UtilizationReportBuilder builder = lookup(UtilizationReportBuilder.class);
    HostinfoService hostinfoService = lookup(HostinfoService.class);
   
    hostinfoService.initialize();
    builder.buildHourlyTask(Constants.REPORT_UTILIZATION,Constants.CAT, new SimpleDateFormat("yyyyMMddHH").parse("2013082617"));
  }
 
  @Test
  public void testDailyReport() throws Exception{
View Full Code Here

  @Test
  public void testDailyReport() throws Exception{
    UtilizationReportBuilder builder = lookup(UtilizationReportBuilder.class);
    HostinfoService hostinfoService = lookup(HostinfoService.class);
   
    hostinfoService.initialize();
    builder.buildDailyTask(Constants.REPORT_UTILIZATION, Constants.CAT, new SimpleDateFormat("yyyyMMdd").parse("20130826"));
  }

  @Test
  public void testWeeklyReport() throws Exception{
View Full Code Here

  @Test
  public void testWeeklyReport() throws Exception{
    UtilizationReportBuilder builder = lookup(UtilizationReportBuilder.class);
    HostinfoService hostinfoService = lookup(HostinfoService.class);
   
    hostinfoService.initialize()
    builder.buildWeeklyTask(Constants.REPORT_UTILIZATION, Constants.CAT, new SimpleDateFormat("yyyyMMdd").parse("20130717"));
  }
 
  @Test
  public void testMonthlyReport() throws Exception{
View Full Code Here

  @Test
  public void testMonthlyReport() throws Exception{
    UtilizationReportBuilder builder = lookup(UtilizationReportBuilder.class);
    HostinfoService hostinfoService = lookup(HostinfoService.class);
   
    hostinfoService.initialize();
    builder.buildMonthlyTask(Constants.REPORT_UTILIZATION, Constants.CAT, new SimpleDateFormat("yyyyMMdd").parse("20130701"));
  }

 
 
View Full Code Here

  public void testHourlyReport() throws Exception{
    Cat.initialize("192.168.7.43");
    ServiceReportBuilder builder = lookup(ServiceReportBuilder.class);
    HostinfoService hostinfoService = lookup(HostinfoService.class);
   
    hostinfoService.initialize();
    builder.buildHourlyTask(Constants.REPORT_SERVICE, "cat", new SimpleDateFormat("yyyyMMddHH").parse("2013082011"));
  }
 
  @Test
  public void testDailyReport() throws Exception{
View Full Code Here

  @Test
  public void testDailyReport() throws Exception{
    ServiceReportBuilder builder = lookup(ServiceReportBuilder.class);
    HostinfoService hostinfoService = lookup(HostinfoService.class);
   
    hostinfoService.initialize();
    builder.buildDailyTask(Constants.REPORT_SERVICE, "cat", new SimpleDateFormat("yyyyMMdd").parse("20130712"));
  }

  @Test
  public void testWeeklyReport() throws Exception{
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.