Examples of accept()


Examples of com.dianping.cat.consumer.transaction.model.entity.TransactionReport.accept()

    for (; startTime < endTime; startTime += TimeHelper.ONE_DAY) {
      try {
        TransactionReport reportModel = m_reportService.queryTransactionReport(domain, new Date(startTime),
              new Date(startTime + TimeHelper.ONE_DAY));

        reportModel.accept(merger);
      } catch (Exception e) {
        Cat.logError(e);
      }
    }
    TransactionReport transactionReport = merger.getTransactionReport();
View Full Code Here

Examples of com.dianping.cat.home.alert.report.entity.AlertReport.accept()

              DailyReportEntity.READSET_FULL);
        String xml = report.getContent();

        if (xml != null && xml.length() > 0) {
          AlertReport reportModel = com.dianping.cat.home.alert.report.transform.DefaultSaxParser.parse(xml);
          reportModel.accept(merger);
        } else {
          AlertReport reportModel = queryFromDailyBinary(report.getId(), domain);
          reportModel.accept(merger);
        }
      } catch (DalNotFoundException e) {
View Full Code Here

Examples of com.dianping.cat.home.bug.entity.BugReport.accept()

              DailyReportEntity.READSET_FULL);
        String xml = report.getContent();

        if (xml != null && xml.length() > 0) {
          BugReport reportModel = com.dianping.cat.home.bug.transform.DefaultSaxParser.parse(xml);
          reportModel.accept(merger);
        } else {
          BugReport reportModel = queryFromDailyBinary(report.getId(), domain);
          reportModel.accept(merger);
        }
      } catch (DalNotFoundException e) {
View Full Code Here

Examples of com.dianping.cat.home.heavy.entity.HeavyReport.accept()

    for (; startTime < endTime; startTime += TimeHelper.ONE_DAY) {
      try {
        HeavyReport reportModel = m_reportService.queryHeavyReport(domain, new Date(startTime), new Date(startTime
              + TimeHelper.ONE_DAY));
        reportModel.accept(merger);
      } catch (Exception e) {
        Cat.logError(e);
      }
    }
    HeavyReport heavyReport = merger.getHeavyReport();
View Full Code Here

Examples of com.dianping.cat.home.service.entity.ServiceReport.accept()

              DailyReportEntity.READSET_FULL);
        String xml = report.getContent();

        if (xml != null && xml.length() > 0) {
          ServiceReport reportModel = com.dianping.cat.home.service.transform.DefaultSaxParser.parse(xml);
          reportModel.accept(merger);
        } else {
          ServiceReport reportModel = queryFromDailyBinary(report.getId(), domain);
          reportModel.accept(merger);
        }
      } catch (DalNotFoundException e) {
View Full Code Here

Examples of com.dianping.cat.home.utilization.entity.UtilizationReport.accept()

    for (; startTime < endTime; startTime += TimeHelper.ONE_DAY) {
      try {
        UtilizationReport reportModel = m_reportService.queryUtilizationReport(domain, new Date(startTime),
              new Date(startTime + TimeHelper.ONE_DAY));
        reportModel.accept(merger);
      } catch (Exception e) {
        Cat.logError(e);
      }
    }
    UtilizationReport utilizationReport = merger.getUtilizationReport();
View Full Code Here

Examples of com.dianping.cat.status.model.entity.StatusInfo.accept()

public class StatusInfoCollectorTest {
  @Test
  public void test() {
    StatusInfo status = new StatusInfo();

    status.accept(new StatusInfoCollector(null, null));

    Assert.assertEquals(true, status.getDisk() != null);
    Assert.assertEquals(true, status.getMemory() != null);
    Assert.assertEquals(true, status.getMessage().getBytes() >= 0);
    Assert.assertEquals(true, status.getMessage().getOverflowed() >= 0);
View Full Code Here

Examples of com.dooapp.gaedo.finders.QueryExpression.accept()

  private Matcher<DataType> createMatcher() {
    QueryExpression expression = buildQueryExpression();
    Matcher<DataType> matcher = new Matcher<DataType>();
    // When the expression accepts the matcher, the matcher will construct
    // its evaluation tree
    expression.accept(matcher);
    return matcher;
  }

  public DataType getFirst() {
    try {
View Full Code Here

Examples of com.dooapp.gaedo.finders.QueryStatement.accept()

        if(evt.getNewValue()==QueryStatement.State.EXECUTED) {
          QueryStatement source = (QueryStatement) evt.getSource();
          if(!loggedQueries.contains(source.getId())) {
            loggedQueries.add(source.getId());
            QueryStatementDotGenerator generator = new QueryStatementDotGenerator(source.getId());
            source.accept(generator);
            logger.info("Run query\n"+source.getId()+"\n"+generator.getText());
          }
        }
      }
    }
View Full Code Here

Examples of com.dubture.doctrine.annotation.parser.tree.AnnotationCommonTree.accept()

            root = parser.annotation();

            AnnotationCommonTree tree = (AnnotationCommonTree) root.getTree();
            AnnotationNodeVisitor visitor = new AnnotationNodeVisitor();
            tree.accept(visitor);

            if (expectFail && reporter.hasErrors() == false) {
                fail();
            }
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.