Package com.dianping.cat.consumer.problem.Configurator

Examples of com.dianping.cat.consumer.problem.Configurator.MockProblemReportManager


      rebuildTransactionReport(transactionReport);
      transactionManager.setReport(transactionReport);

      ProblemAnalyzer problemAnalyzer = (ProblemAnalyzer) lookup(MessageAnalyzer.class, ProblemAnalyzer.ID);
      ProblemDelegate problemDelegate = (ProblemDelegate) lookup(ReportDelegate.class, "problem");
      MockProblemReportManager problemManager = (MockProblemReportManager) lookup(ReportManager.class, "problem");
      xml = Files.forIO().readFrom(ProblemAnalyzerTest.class.getResourceAsStream("problem-report.xml"), "utf-8");
      ProblemReport problemReport = problemDelegate.parseXml(xml);
      problemManager.setReport(problemReport);

      m_analyzer = (TopAnalyzer) lookup(MessageAnalyzer.class, TopAnalyzer.ID);

      m_analyzer.setTransactionAnalyzer(transactionAnalyzer);
      m_analyzer.setProblemAnalyzer(problemAnalyzer);
View Full Code Here

TOP

Related Classes of com.dianping.cat.consumer.problem.Configurator.MockProblemReportManager

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.