Class AbstractVDPLoadJobReport<ReportType>
java.lang.Object
com.denodo.scheduler.client.job.report.BaseJobReport
com.denodo.scheduler.client.job.report.AbstractExtractionJobReport
com.denodo.scheduler.client.job.report.AbstractVDPLoadJobReport<ReportType>
- All Implemented Interfaces:
JobReport,JobReportWithChildren<ReportType>,Serializable
- Direct Known Subclasses:
VDPCacheJobReport,VDPDAGLoadJobReport,VDPDataLoadJobReport
public abstract class AbstractVDPLoadJobReport<ReportType>
extends AbstractExtractionJobReport
implements JobReportWithChildren<ReportType>
Report for common data used in VDP Cache and DataLoad jobs.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of identifiers of current executions that finished with error, grouped by load process.List of identifiers of current executions that finished successfully, grouped by load process.List of identifiers of current executions that finished with warning, grouped by load process.protected StringList of identifiers of previous executions that finished with error, grouped by load process.List of identifiers of previous executions that finished successfully, grouped by load process.protected Stringprotected Map<Integer,ReportType> Map of Reports <int loadProcess, VDPAbstractLoadJobReport report> : holds the reports of the execution of each individual load process.Fields inherited from class com.denodo.scheduler.client.job.report.AbstractExtractionJobReport
extractedDocs, extractorErrorsCount, extractorWarningsCount, maxErrorsToSaveFields inherited from class com.denodo.scheduler.client.job.report.BaseJobReport
readWriteLock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExecutionSucess(Integer parent, Integer execution) voidaddExtractorError(int taskId, int execution, String extractorError) voidaddExtractorError(int execution, String extractorError) protected abstract voidaddExtractorError(ReportType report, int execution, String extractorError) protected abstract voidaddExtractorError(ReportType report, String extractorError) voidaddExtractorWarning(int taskId, int execution, String extractorWarning) voidaddExtractorWarning(int execution, String extractorWarning) protected abstract voidaddExtractorWarning(ReportType report, int execution, String extractorWarning) protected abstract voidaddExtractorWarning(ReportType report, String extractorWarning) voidvoidaddReport(int parent, int execution, ReportType reportToAdd) voidaddReport(int execution, ReportType report) protected abstract voidaddReport(ReportType report, int execution, ReportType reportToAdd) booleanGets the name of the load process to preload a VDP view.getQuery()Gets the executed query.Returns the successful executions, by load process.getSuccessExecutions(int parent) Returns the successful executions of a load process.booleanvoidincExtractedDocs(int parent, int execution, long numDocs) voidincExtractedDocs(int execution, long numDocs) protected abstract voidincExtractedDocs(ReportType report, int execution, long numDocs) protected abstract voidincExtractedDocs(ReportType report, long numDocs) voidremoveReport(int execution) voidremoveReport(int parent, int execution) protected abstract voidremoveReport(ReportType report, int execution) voidreset()protected abstract voidreset(ReportType report) voidsetEndTime(int parent, int execution, Date date) voidsetEndTime(int execution, Date date) protected abstract voidsetEndTime(ReportType report, int execution, Date date) protected abstract voidsetEndTime(ReportType report, Date date) voidsetLoadProcessName(String loadProcessName) voidsetPreviousExecutionErrors(Map<Integer, List<Integer>> previousExecutionErrors) voidsetPreviousExecutionSuccess(Map<Integer, List<Integer>> previousExecutionSuccess) voidsetPreviousLoadProcessSuccess(Map<String, LoadProcessSuccessInfo> previousLoadProcessSuccess) voidtoString()Methods inherited from class com.denodo.scheduler.client.job.report.AbstractExtractionJobReport
addExtractorError, addExtractorWarning, getExtractedDocs, getExtractorErrors, getExtractorErrorsCount, getExtractorWarnings, getExtractorWarningsCount, getGlobalExtractedDocs, hasWarnings, incExtractedDocs, setExtractedDocs, setExtractorErrors, setExtractorWarnings, setGlobalExtractedDocsMethods inherited from class com.denodo.scheduler.client.job.report.BaseJobReport
addGeneralError, addGeneralWarning, addHandlerError, addHandlerWarning, addInitializationError, getDuration, getEndTime, getExtractionDataSourceName, getFirstTime, getGeneralErrors, getGeneralWarnings, getHandlerErrors, getHandlerWarnings, getId, getInitializationErrors, getJobID, getJobName, getJobType, getMisfireError, getProjectName, getRetryCount, getRetryJob, getServerInfo, getStartTime, hasMisfired, isInterrupted, setEndTime, setExtractionDataSourceName, setFirstTime, setId, setInterrupted, setJobID, setJobName, setJobType, setMisfireError, setProjectName, setRetryCount, setRetryJob, setServerInfo, setStartTime
-
Field Details
-
query
-
loadProcessName
-
executionSuccess
List of identifiers of current executions that finished successfully, grouped by load process. -
executionErrors
List of identifiers of current executions that finished with error, grouped by load process. -
executionWarnings
List of identifiers of current executions that finished with warning, grouped by load process. -
previousExecutionErrors
List of identifiers of previous executions that finished with error, grouped by load process. -
previousExecutionSuccess
List of identifiers of previous executions that finished successfully, grouped by load process. -
reports
Map of Reports <int loadProcess, VDPAbstractLoadJobReport report> : holds the reports of the execution of each individual load process.
-
-
Constructor Details
-
AbstractVDPLoadJobReport
protected AbstractVDPLoadJobReport() -
AbstractVDPLoadJobReport
-
AbstractVDPLoadJobReport
-
-
Method Details
-
getQuery
Gets the executed query. Considerations:- The top level report (the job's one) does not execute any query.
- The second level reports (load processes' ones) may execute parameterized or not parameterized queries. In the first case, they have third level reports.
- The third level reports only exist if the load process they belong to have a parameterized query. It represents the exact query against VDP.
- Returns:
- the query
-
setQuery
-
getLoadProcessName
Gets the name of the load process to preload a VDP view. Only for load processes reports (second level ones).- Returns:
- the load process name
-
setLoadProcessName
-
getReports
-
addReport
- Specified by:
addReportin interfaceJobReportWithChildren<ReportType>
-
addReport
-
addReport
-
removeReport
public void removeReport(int execution) - Specified by:
removeReportin interfaceJobReportWithChildren<ReportType>
-
removeReport
public void removeReport(int parent, int execution) -
removeReport
-
setEndTime
-
setEndTime
-
setEndTime
- Specified by:
setEndTimein interfaceJobReportWithChildren<ReportType>
-
setEndTime
-
incExtractedDocs
public void incExtractedDocs(int parent, int execution, long numDocs) -
incExtractedDocs
-
incExtractedDocs
public void incExtractedDocs(int execution, long numDocs) - Specified by:
incExtractedDocsin interfaceJobReportWithChildren<ReportType>
-
incExtractedDocs
-
addExtractorError
-
addExtractorError
-
addExtractorError
- Specified by:
addExtractorErrorin interfaceJobReportWithChildren<ReportType>
-
addExtractorError
-
addExtractorWarning
-
addExtractorWarning
protected abstract void addExtractorWarning(ReportType report, int execution, String extractorWarning) -
addExtractorWarning
- Specified by:
addExtractorWarningin interfaceJobReportWithChildren<ReportType>
-
addExtractorWarning
-
setPreviousExecutionSuccess
- Parameters:
previousExecutionSuccess- the previousExecutionSuccess to set
-
setPreviousExecutionErrors
- Parameters:
previousExecutionErrors- the previousExecutionErrors to set
-
addExecutionSucess
-
getSuccessExecutions
Returns the successful executions of a load process.- Parameters:
parent- the load process identifier
-
getSuccessExecutions
Returns the successful executions, by load process. -
getFailedExecutions
-
hasErrors
public boolean hasErrors()- Specified by:
hasErrorsin interfaceJobReport- Overrides:
hasErrorsin classAbstractExtractionJobReport
-
containsRetryableErrors
public boolean containsRetryableErrors()- Overrides:
containsRetryableErrorsin classAbstractExtractionJobReport
-
reset
public void reset()- Specified by:
resetin interfaceJobReport- Specified by:
resetin interfaceJobReportWithChildren<ReportType>- Overrides:
resetin classAbstractExtractionJobReport
-
reset
-
addLoadProcessSuccess
-
setPreviousLoadProcessSuccess
public void setPreviousLoadProcessSuccess(Map<String, LoadProcessSuccessInfo> previousLoadProcessSuccess) -
getLoadProcessSuccess
-
toString
- Overrides:
toStringin classAbstractExtractionJobReport
-