public class ReportDocumentRepository extends Object
reportDocuments and reportDocumentsForAddition.| Modifier and Type | Field and Description |
|---|---|
private ReportDocumentList<ReportDocument> |
reportDocuments
All
ReportDocuments that will be completed during parsing. |
private List<ReportDocument> |
reportDocumentsForAddition
During parsing of files we can add
ReportDocuments to the
ReportDocuments list. |
| Constructor and Description |
|---|
ReportDocumentRepository() |
| Modifier and Type | Method and Description |
|---|---|
ReportDocumentList<ReportDocument> |
getReportDocuments() |
List<ReportDocument> |
getReportDocumentsForAddition() |
void |
setReportDocuments(ReportDocumentList<ReportDocument> reportDocuments) |
void |
setReportDocumentsForAddition(List<ReportDocument> reportDocumentsForAddition) |
private ReportDocumentList<ReportDocument> reportDocuments
ReportDocuments that will be completed during parsing.
VisualizerService will read line by
line source files and for each line will try to apply all
LineProcessors related with all reportDocuments.
If the current log line is applicable to the
current ReportDocument, it can be transformed and appended
to the Printable.getCacheLines() or / and returned from the
current LineProcessor. Returned
transformed line will be written to a report file immediately.private List<ReportDocument> reportDocumentsForAddition
ReportDocuments to the
ReportDocuments list. We can`t add them to the list directly,
because ConcurrentModificationException is throwing.
So wee need to add them tho this reportDocumentsForAddition
first, and merge this list to the ReportDocuments after the
current log line has been processed by all items from the
ReportDocuments list. See the
VisualizerService createReports method.public ReportDocumentRepository()
public ReportDocumentList<ReportDocument> getReportDocuments()
reportDocuments field value.public void setReportDocuments(ReportDocumentList<ReportDocument> reportDocuments)
reportDocuments - see the reportDocuments fieldpublic List<ReportDocument> getReportDocumentsForAddition()
reportDocumentsForAddition field value.public void setReportDocumentsForAddition(List<ReportDocument> reportDocumentsForAddition)
reportDocumentsForAddition - see the reportDocumentsForAddition fieldCopyright © 2023. All rights reserved.