Class DocumentJobImpl
- All Implemented Interfaces:
DocumentJob,RendererJob
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Gets, whether the document has changed.voidexecutionFailed(String documentId, Throwable cause) Deprecated.Called when job execution failsvoidfinishingFailed(String documentId, Throwable cause) Deprecated.Called when finishing the job failsvoidDeprecated.Called after executing a job.Deprecated.Gets the failure cause.Deprecated.Gets execution flags for this job.getName()Deprecated.Gets the job name (e.g.booleanDeprecated.Checks for succeeded.voidpreconditionsFailed(String documentId, Throwable cause) Deprecated.Called when checking preconditions failsvoidpreparationFailed(String documentId, Throwable cause) Deprecated.Called when preparing the job failsvoidprepareJob(String documentId, String documentPath) Deprecated.Called before executing a jobMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.priint.pubserver.comet.renderer.RendererJob
executeJob
-
Constructor Details
-
DocumentJobImpl
public DocumentJobImpl()Deprecated.
-
-
Method Details
-
getJobExecutionFlag
Deprecated.Description copied from interface:RendererJobGets execution flags for this job.
See the
JobExecutionFlagenumeration for a list of available flags supported for DocumentJobs and the default value for these flags.- Specified by:
getJobExecutionFlagin interfaceRendererJob- Parameters:
flag- the flag- Returns:
- value for this execution flag
-
getName
Deprecated.Description copied from interface:RendererJobGets the job name (e.g. for log output)
- Specified by:
getNamein interfaceRendererJob- Returns:
- the job name
-
documentHasChanged
public boolean documentHasChanged()Deprecated.Description copied from interface:DocumentJobGets, whether the document has changed.
Gets, whether the document has changed. This method should return true, if the document has changed and therefore caches / database information for this document must be updated after execution.
- Specified by:
documentHasChangedin interfaceDocumentJob- Returns:
- true, if the document has changed, false otherwise
-
prepareJob
Deprecated.Description copied from interface:RendererJobCalled before executing a job
This method is called after checking preconditions and before locking a renderer instance for this job.
A typical prepareJob implementation could delete a previous version of the document and copy again from master document (such as in CScript jobs).- Specified by:
prepareJobin interfaceRendererJob- Parameters:
documentId- Id of the document, which will be processed in this jobdocumentPath- real path of the document- Throws:
PubServerException- the pub server exception
-
finishJob
Deprecated.Description copied from interface:RendererJobCalled after executing a job.
Called after (successfully) running the
RendererJob.executeJob(String, String, Comet)method.
This method allows implementation of cleanup or update tasks (e.g. "register in DB"). The method will be called only, when no exception was raised during job execution.- Specified by:
finishJobin interfaceRendererJob- Parameters:
documentId- Id of the document, which has been processed.documentPath- real path of the document- Throws:
PubServerException- the pub server exception
-
executionFailed
Deprecated.Description copied from interface:RendererJobCalled when job execution fails
Called, when an exception was raised during the
RendererJob.executeJob(String, String, Comet)call.- Specified by:
executionFailedin interfaceRendererJob- Parameters:
documentId- Id of the document, which should be processed.cause- exception caught during job execution
-
preconditionsFailed
Deprecated.Description copied from interface:RendererJobCalled when checking preconditions fails
Called, when an exception was raised during checking job preconditions.
- Specified by:
preconditionsFailedin interfaceRendererJob- Parameters:
documentId- Id of the document, which should be processed.cause- exception caught during job execution
-
preparationFailed
Deprecated.Description copied from interface:RendererJobCalled when preparing the job fails
Called, when an exception was raised during the
RendererJob.prepareJob(String, String)call.- Specified by:
preparationFailedin interfaceRendererJob- Parameters:
documentId- Id of the document, which should be processed.cause- exception caught during job preparation
-
finishingFailed
Deprecated.Description copied from interface:RendererJobCalled when finishing the job fails
Called, when an exception was raised during the
RendererJob.finishJob(String, String)call.- Specified by:
finishingFailedin interfaceRendererJob- Parameters:
documentId- Id of the document, which should be processed.cause- exception caught during job finishing
-
hasSucceeded
public boolean hasSucceeded()Deprecated.Checks for succeeded.- Returns:
- true, if successful
-
getFailureCause
Deprecated.Gets the failure cause.- Returns:
- the failure cause
-