Package com.dianping.cat.service

Examples of com.dianping.cat.service.HostinfoService


  }

  @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"));
  }
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

public class UtilizationBuilderTest extends ComponentTestCase{
 
  @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"));
  }
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"));
  }
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"));
  }
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

 
  @Test
  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"));
  }
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"));
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.service.HostinfoService

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.