this.crawlProps = new CrawlPropertiesFile(crawlPropFilePath);
this.statesFile = new WorkflowStatesFile(statesFilePath);
}
public PCSHealthMonitorReport getReport() {
PCSHealthMonitorReport report = new PCSHealthMonitorReport();
report.setGenerationDate(new Date());
report.setFmStatus(getFileManagerStatus());
report.setWmStatus(getWorkflowManagerStatus());
report.setRmStatus(getResourceManagerStatus());
report.setBatchStubStatus(getBatchStubStatus());
report.setCrawlerStatus(getCrawlerStatus());
report.setLatestProductsIngested(getProductHealth());
report.setJobHealthStatus(getJobStatusHealth());
report.setCrawlerHealthStatus(getIngestHealth());
return report;
}