public boolean generate(ReportDescription description,Date date){
  try {
    Integer targetDateInt=Integer.parseInt(format.format(date));
    AnalysisResultSet logAggregation=makeLogAnal(description,targetDateInt);
    Report report=new Report();
    report.setSendTime(new Date());
    report.setTargetDate(date);
    report.setLogReport(logAggregation);
    report.setTargets(description.getTargets());
    logger.debug("generated > " + report);
    reportRepository.save(report);
    return true;
  }
 catch (  Exception e) {
    logger.error(e.getMessage(),e);
    return false;
  }
}

public boolean generate ( ReportDescription description , Date date ) { try { Integer targetDateInt = Integer . parseInt ( format . format ( date ) ) ; AnalysisResultSet logAggregation = makeLogAnal ( description , targetDateInt ) ; Report report = new Report ( ) ; report . setSendTime ( new Date ( ) ) ; report . setTargetDate ( date ) ; report . setLogReport ( logAggregation ) ; report . setTargets ( description . getTargets ( ) ) ; logger . debug ( "generated > " + report ) ; reportRepository . save ( report ) ; return true ; } catch ( Exception e ) { logger . error ( e . getMessage ( ) , e ) ; return false ; } }
generate report using description and target date
