Package com.dianping.cat.consumer.matrix

Examples of com.dianping.cat.consumer.matrix.MatrixReportFilter


      } catch (Exception e) {
        Cat.logError(e);
      }
    }
    MatrixReport matrixReport = merger.getMatrixReport();
    new MatrixReportFilter().visitMatrixReport(matrixReport);

    matrixReport.setStartTime(start);
    matrixReport.setEndTime(end);
    return matrixReport;
  }
View Full Code Here


            + TimeHelper.ONE_HOUR));

      reportModel.accept(merger);
    }
    MatrixReport matrixReport = merger.getMatrixReport();
    new MatrixReportFilter().visitMatrixReport(matrixReport);

    matrixReport.getDomainNames().addAll(domainSet);
    matrixReport.setStartTime(start);
    matrixReport.setEndTime(end);
    return matrixReport;
View Full Code Here

        CrossReport crossReport = m_reportService.queryCrossReport(domain, start, end);
        m_reportService.insertMonthlyReport(buildMonthlyReport(domain, start, CrossAnalyzer.ID),
              com.dianping.cat.consumer.cross.model.transform.DefaultNativeBuilder.build(crossReport));

        MatrixReport matrixReport = m_reportService.queryMatrixReport(domain, start, end);
        new MatrixReportFilter().visitMatrixReport(matrixReport);
        m_reportService.insertMonthlyReport(buildMonthlyReport(domain, start, MatrixAnalyzer.ID),
              com.dianping.cat.consumer.matrix.model.transform.DefaultNativeBuilder.build(matrixReport));

        t.setStatus(Transaction.SUCCESS);
        t.complete();
View Full Code Here

        CrossReport crossReport = m_reportService.queryCrossReport(domain, start, end);
        m_reportService.insertWeeklyReport(buildWeeklyReport(domain, start, CrossAnalyzer.ID),
              com.dianping.cat.consumer.cross.model.transform.DefaultNativeBuilder.build(crossReport));

        MatrixReport matrixReport = m_reportService.queryMatrixReport(domain, start, end);
        new MatrixReportFilter().visitMatrixReport(matrixReport);
        m_reportService.insertWeeklyReport(buildWeeklyReport(domain, start, MatrixAnalyzer.ID),
              com.dianping.cat.consumer.matrix.model.transform.DefaultNativeBuilder.build(matrixReport));

        t.setStatus(Transaction.SUCCESS);
        t.complete();
View Full Code Here

public class MatrixModelTest {
  @Test
  public void testModel() throws Exception {
    String source = Files.forIO().readFrom(getClass().getResourceAsStream("matrix.xml"), "utf-8");
    MatrixReport report = DefaultSaxParser.parse(source);
    MatrixReportFilter filter = new MatrixReportFilter();

    filter.setMaxSize(10);
    report.accept(filter);
    String expected1 = Files.forIO().readFrom(getClass().getResourceAsStream("matrix_result.xml"), "utf-8");

    Assert.assertEquals(expected1.replaceAll("\r", ""), report.toString().replaceAll("\r", ""));
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.consumer.matrix.MatrixReportFilter

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.