Class VDPCacheJobReport
java.lang.Object
com.denodo.scheduler.client.job.report.BaseJobReport
com.denodo.scheduler.client.job.report.AbstractExtractionJobReport
com.denodo.scheduler.client.job.report.VDPCacheJobReport
- All Implemented Interfaces:
JobReport,Serializable
Report for VDP Cache jobs.
- Since:
- 5.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longFor interoperability with possible future changes.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 TypeMethodDescriptionvoidaddCacheError(int parent, int execution, String cacheError) voidaddCacheError(int execution, String cacheError) voidaddCacheError(String cacheError) voidaddExecutionSucess(Integer parent, Integer execution) voidaddExtractorError(int taskId, int execution, String extractorError) voidaddExtractorError(int execution, String extractorError) voidaddExtractorWarning(int taskId, int execution, String extractorWarning) voidaddExtractorWarning(int execution, String extractorWarning) voidaddReport(int parent, int execution, VDPCacheJobReport reportToAdd) voidaddReport(int execution, VDPCacheJobReport report) voidaddSourceError(int parent, String sourceError) voidaddSourceError(String sourceError) booleanlongReturns the number of cached documents.Returns the errors when caching tuples.longReturns the list of queries combinations (values of the parameters of a parameterized query), grouped by load process.getCombinations(Integer execution) Returns the combinations of a load process.Gets 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.booleanbooleanvoidincCachedDocs(int parent, int execution, long numDocs) voidincCachedDocs(int execution, long numDocs) voidincCachedDocs(long numDocs) voidincExtractedDocs(int parent, int execution, long numDocs) voidincExtractedDocs(int execution, long numDocs) voidremoveReport(int execution) voidremoveReport(int parent, int execution) voidreset()voidsetCombinations(Integer execution, List<Object> combinations) voidsetCombinations(Map<Integer, List<Object>> combinations) voidsetEndTime(int parent, int execution, Date date) voidsetEndTime(int execution, Date date) voidsetLoadProcessName(String loadProcessName) voidsetPreviousExecutionErrors(Map<Integer, List<Integer>> previousExecutionErrors) voidsetPreviousExecutionSuccess(Map<Integer, List<Integer>> previousExecutionSuccess) voidvoidsetTuplesNotCachedInQueriedView(boolean tuplesNotCachedInQueriedView) voidsetTuplesNotCachedInQueriedView(int execution, boolean tuplesNotCachedInQueriedView) voidsetTuplesNotCachedInQueriedView(int parent, int execution, boolean tuplesNotCachedInQueriedView) toString()Methods inherited from class com.denodo.scheduler.client.job.report.AbstractExtractionJobReport
addExtractorError, addExtractorWarning, getExtractedDocs, getExtractorErrors, getExtractorErrorsCount, getExtractorWarnings, getExtractorWarningsCount, hasWarnings, incExtractedDocs, setExtractedDocs, setExtractorErrors, setExtractorWarningsMethods inherited from class com.denodo.scheduler.client.job.report.BaseJobReport
addGeneralError, addGeneralWarning, addHandlerError, addHandlerWarning, addInitializationError, 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
-
serialVersionUID
protected static final long serialVersionUIDFor interoperability with possible future changes.- See Also:
-
-
Constructor Details
-
VDPCacheJobReport
public VDPCacheJobReport() -
VDPCacheJobReport
-
VDPCacheJobReport
-
-
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
-
addReport
-
removeReport
public void removeReport(int execution) -
removeReport
public void removeReport(int parent, int execution) -
setEndTime
-
setEndTime
-
incExtractedDocs
public void incExtractedDocs(int parent, int execution, long numDocs) -
incExtractedDocs
public void incExtractedDocs(int execution, long numDocs) -
addExtractorError
-
addExtractorError
-
addExtractorWarning
-
addExtractorWarning
-
getCacheErrorsCount
public long getCacheErrorsCount() -
getCachedDocs
public long getCachedDocs()Returns the number of cached documents.- Returns:
-
incCachedDocs
public void incCachedDocs(long numDocs) -
incCachedDocs
public void incCachedDocs(int parent, int execution, long numDocs) -
incCachedDocs
public void incCachedDocs(int execution, long numDocs) -
hasTuplesNotCachedInQueriedView
public boolean hasTuplesNotCachedInQueriedView()- Returns:
- true if the tuples have not been cached in the queried view.
-
setTuplesNotCachedInQueriedView
public void setTuplesNotCachedInQueriedView(int parent, int execution, boolean tuplesNotCachedInQueriedView) -
setTuplesNotCachedInQueriedView
public void setTuplesNotCachedInQueriedView(int execution, boolean tuplesNotCachedInQueriedView) -
setTuplesNotCachedInQueriedView
public void setTuplesNotCachedInQueriedView(boolean tuplesNotCachedInQueriedView) -
getCacheErrors
Returns the errors when caching tuples.- Returns:
- The collection of errors
-
addCacheError
-
addCacheError
-
addCacheError
-
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- Returns:
-
getSuccessExecutions
Returns the successful executions, by load process.- Returns:
-
getFailedExecutions
-
getCombinations
Returns the list of queries combinations (values of the parameters of a parameterized query), grouped by load process. Used to store the combinations and not to retrieve the values from sources when the job is retried or started with state.- Returns:
-
getCombinations
Returns the combinations of a load process.- Parameters:
execution- the load process identifier- Returns:
- the list of values
-
setCombinations
-
setCombinations
-
getSourcesErrors
-
addSourceError
-
addSourceError
-
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- Overrides:
resetin classAbstractExtractionJobReport
-
toString
- Overrides:
toStringin classAbstractExtractionJobReport
-