Examples of ProblemDelegate


Examples of com.dianping.cat.consumer.problem.ProblemDelegate

      TransactionReport transactionReport = transactionDelegate.parseXml(xml);
      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);
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.