Package com.denodo.scheduler.client.job
Class JobData
java.lang.Object
com.denodo.scheduler.client.job.JobData
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
VDPCacheJobData,VDPDataLoadJobData,VDPIndexerJobData
Information about a job in the scheduler: its name, current status,
last execution and its last results.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the result of the last execution of the job.static enumAn enumeration of job states. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longFor interoperability with possible future changes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExporterWithUnknownExportedTuples(String exporterName) booleancompleteJobData(JobReport jobReport) Gets the values of the parameters of a parameterized query (in order to not query the sources when retrying a job).Returns the list of exporter names which may have exported more than the tuples indicated ingetExportationResult().longlonglonglonglongReturns the first time in milliseconds at which the job was fire.intgetJobID()getName()Returns the next time at which the job will fire.longReturns the previous time at which the job will fire.intGets the queries which returned an error (for retrying them if needed).Gets the queries which did not returned an error (for not retrying them).intgetState()getType()voidincExportationErrors(String exporterID, long num) voidincExportationGlobalResult(String exporterID, long num) voidincExportationResult(String exporterID, long num) voidincExportationWarnings(String exporterID, long num) voidincExtractionErrors(long num) voidincExtractionGlobalResult(long num) voidincExtractionResult(long num) voidincExtractionWarnings(long num) voidincParametersExecuted(long num) booleanbooleanvoidreset()booleanretryJob()voidsetCombinations(Serializable combinations) voidsetExportationErrors(Map<String, Long> exportationErrors) voidsetExportationGlobalResult(Map<String, Long> exportationGlobalResult) voidsetExportationResult(Map<String, Long> exportationResult) voidsetExportationWarnings(Map<String, Long> exportationWarnings) voidsetFirstExecution(long firstExecution) Sets the first time in milliseconds at which the job was fire.voidsetInterrupted(boolean interrupted) voidsetLastResult(JobData.Result lastResult) voidvoidsetNextExecution(Date nextExecution) Sets the next time at which the job will fire.voidsetPreviousExecution(Date previousExecution) Sets the previous time at which the job will fire.voidsetProjectId(int projectId) voidsetProjectName(String name) voidsetQueryErrors(Serializable queryErrors) voidsetQuerySuccess(Serializable querySuccess) voidsetRetryCount(int retryCount) voidsetRetryJob(boolean retryJob) voidsetStartedWithState(boolean startedWithState) voidsetState(JobData.State state) voidtoString()
-
Field Details
-
serialVersionUID
protected static final long serialVersionUIDFor interoperability with possible future changes.- See Also:
-
-
Constructor Details
-
JobData
public JobData() -
JobData
-
JobData
-
-
Method Details
-
getJobID
public int getJobID() -
getProjectName
- Returns:
- the projectName
-
setProjectName
- Parameters:
name- the project name to set
-
getProjectId
public int getProjectId()- Returns:
- the projectId
-
setProjectId
public void setProjectId(int projectId) - Parameters:
projectId- the project projectId to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-
getState
- Returns:
- the status
-
setState
- Parameters:
state- the state to set
-
getLastResult
- Returns:
- the lastResult
-
setLastResult
- Parameters:
lastResult- the lastResult to set
-
getFirstExecution
public long getFirstExecution()Returns the first time in milliseconds at which the job was fire. If the job has not yet fired, null will be returned. Re-executions because of a 'retry' situation are not considered.- Returns:
- the previousExecution
-
setFirstExecution
public void setFirstExecution(long firstExecution) Sets the first time in milliseconds at which the job was fire. Re-executions because of a 'retry' situation are not considered.- Parameters:
firstExecution- the firstExecution to set
-
getPreviousExecution
Returns the previous time at which the job will fire. If the job has not yet fired, null will be returned.- Returns:
- the previousExecution
-
setPreviousExecution
Sets the previous time at which the job will fire.- Parameters:
previousExecution- the previousExecution to set
-
getNextExecution
Returns the next time at which the job will fire. If the job will not fire again, null will be returned.- Returns:
- the nextExecution
-
setNextExecution
Sets the next time at which the job will fire. If the job will not fire again, it will be set to null.- Parameters:
nextExecution- the nextExecution to set
-
getExtractionResult
public long getExtractionResult()- Returns:
- the extractionResult
-
incExtractionResult
public void incExtractionResult(long num) -
getExtractionGlobalResult
public long getExtractionGlobalResult()- Returns:
- the extractionGlobalResult
-
incExtractionGlobalResult
public void incExtractionGlobalResult(long num) -
getExtractionErrors
public long getExtractionErrors()- Returns:
- the extractionErrors
-
incExtractionErrors
public void incExtractionErrors(long num) -
getExtractionWarnings
public long getExtractionWarnings()- Returns:
- the extractionWarnings
-
incExtractionWarnings
public void incExtractionWarnings(long num) -
getExportationResult
- Returns:
- the exportationResult
-
setExportationResult
-
incExportationResult
-
getExportationGlobalResult
- Returns:
- the exportationGlobalResult
-
setExportationGlobalResult
-
incExportationGlobalResult
-
getExportationErrors
- Returns:
- the exportationErrors
-
setExportationErrors
-
incExportationErrors
-
getExportationWarnings
- Returns:
- the exportationWarnings
-
setExportationWarnings
-
incExportationWarnings
-
getParametersExecuted
public long getParametersExecuted()- Returns:
- the parametersExecuted
-
incParametersExecuted
public void incParametersExecuted(long num) -
getExportersWithUnknownExportedTuples
Returns the list of exporter names which may have exported more than the tuples indicated ingetExportationResult(). Related to batch inserts in JDBCExporters. -
addExporterWithUnknownExportedTuples
-
getQueryErrors
Gets the queries which returned an error (for retrying them if needed).- Returns:
- In the case of VDPCache jobs, a
Map<Integer, List<Integer>>; otherwise, aList<Integer>.
-
setQueryErrors
-
getQuerySuccess
Gets the queries which did not returned an error (for not retrying them).- Returns:
- In the case of VDPCache jobs, a
Map<Integer, List<Integer>>; otherwise, aList<Integer>.
-
setQuerySuccess
-
getRetryCount
public int getRetryCount() -
setRetryCount
public void setRetryCount(int retryCount) -
retryJob
public boolean retryJob() -
setRetryJob
public void setRetryJob(boolean retryJob) -
isInterrupted
public boolean isInterrupted() -
setInterrupted
public void setInterrupted(boolean interrupted) -
getCombinations
Gets the values of the parameters of a parameterized query (in order to not query the sources when retrying a job).- Returns:
- In the case of VDPCache jobs, a
Map<Integer, List<Serializable>>; otherwise, aList<Serializable>.
-
setCombinations
-
reset
public void reset() -
isStartedWithState
public boolean isStartedWithState() -
setStartedWithState
public void setStartedWithState(boolean startedWithState) -
completeJobData
-
toString
-