Example #1
0
  @Override
  public ProblemReport makeReport(String domain, long startTime, long duration) {
    ProblemReport report = new ProblemReport(domain);

    report.setStartTime(new Date(startTime));
    report.setEndTime(new Date(startTime + duration - 1));

    return report;
  }
Example #2
0
 @Override
 public void visitProblemReport(ProblemReport problemReport) {
   m_domain = problemReport.getDomain();
   m_report = new ProblemReport();
   m_report.getIps().addAll(problemReport.getIps());
   m_report.getDomainNames().addAll(problemReport.getDomainNames());
   m_report.setDomain(problemReport.getDomain());
   m_report.setStartTime(problemReport.getStartTime());
   m_report.setEndTime(problemReport.getEndTime());
   super.visitProblemReport(problemReport);
 }