Class PublicationJobImpl
- All Implemented Interfaces:
PublicationJob
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract jakarta.activation.DataHandlerexecuteJob(String publicationId, List<Publication> publications, Comet renderer) Deprecated.Runs a job for the publication described by publicationId with the renderer instance provided.voidexecutionFailed(String publicationId, List<Publication> publications, Throwable cause) Deprecated.Called when job execution failsvoidfinishingFailed(String publicationId, List<Publication> publications, Throwable cause) Deprecated.Called when finishing the job failsvoidfinishJob(String publicationId, List<Publication> publications) Deprecated.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 publicationId, List<Publication> publications, Throwable cause) Deprecated.Called when checking preconditions failsvoidpreparationFailed(String publicationId, List<Publication> publications, Throwable cause) Deprecated.Called when preparing the job failsvoidprepareJob(String publicationId, List<Publication> publications) Deprecated.Called before executing a job
-
Constructor Details
-
PublicationJobImpl
public PublicationJobImpl()Deprecated.
-
-
Method Details
-
getName
Deprecated.Description copied from interface:PublicationJobGets the job name (e.g. for log output)
- Specified by:
getNamein interfacePublicationJob- Returns:
- the job name
-
getJobExecutionFlag
Deprecated.Description copied from interface:PublicationJobGets execution flags for this job.
See the
JobExecutionFlagenumeration for a list of available flags supported for PublicationJobs and the default value for these flags.- Specified by:
getJobExecutionFlagin interfacePublicationJob- Parameters:
flag- the flag- Returns:
- value for this execution flag
-
prepareJob
public void prepareJob(String publicationId, List<Publication> publications) throws PubServerException Deprecated.Description copied from interface:PublicationJobCalled before executing a job
This method is called before locking a renderer instance for this job and only, if the job mode for this publication job is
PUBLICATION_ALL_IN_ONE.- Specified by:
prepareJobin interfacePublicationJob- Parameters:
publicationId- Id of the publication, which will be processed in this jobpublications- the publications- Throws:
PubServerException- the pub server exception
-
executeJob
public abstract jakarta.activation.DataHandler executeJob(String publicationId, List<Publication> publications, Comet renderer) throws PubServerException Deprecated.Description copied from interface:PublicationJobRuns a job for the publication described by publicationId with the renderer instance provided.
When this method is called,
- all preconditions have been checked
- job preparations implemented in
#prepareJob(String, String)have been executed - a renderer instance has been locked for this job
- Specified by:
executeJobin interfacePublicationJob- Parameters:
publicationId- TODOpublications- the publicationsrenderer- the renderer- Returns:
- arbitrary String with job result or result description
- Throws:
PubServerException- the pub server exception
-
finishJob
public void finishJob(String publicationId, List<Publication> publications) throws PubServerException Deprecated.Description copied from interface:PublicationJobCalled after executing a job.
Called after (successfully) running the
#executeJob(String, List<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 interfacePublicationJob- Parameters:
publicationId- Id of the document, which has been processed.publications- the publications- Throws:
PubServerException- the pub server exception
-
executionFailed
Deprecated.Description copied from interface:PublicationJobCalled when job execution fails
Called, when an exception was raised during the
#executeJob(String, List<String>, Comet)call.- Specified by:
executionFailedin interfacePublicationJob- Parameters:
publicationId- Id of the document, which should be processed.publications- the publicationscause- exception caught during job execution
-
preconditionsFailed
public void preconditionsFailed(String publicationId, List<Publication> publications, Throwable cause) Deprecated.Description copied from interface:PublicationJobCalled when checking preconditions fails
Called, when an exception was raised during checking job preconditions.
- Specified by:
preconditionsFailedin interfacePublicationJob- Parameters:
publicationId- Id of the document, which should be processed.publications- the publicationscause- exception caught during job execution
-
preparationFailed
public void preparationFailed(String publicationId, List<Publication> publications, Throwable cause) Deprecated.Description copied from interface:PublicationJobCalled when preparing the job fails
Called, when an exception was raised during the
#prepareJob(String, String)call.- Specified by:
preparationFailedin interfacePublicationJob- Parameters:
publicationId- Id of the document, which should be processed.publications- the publicationscause- exception caught during job preparation
-
finishingFailed
Deprecated.Description copied from interface:PublicationJobCalled when finishing the job fails
Called, when an exception was raised during the
#finishJob(String, String)call.- Specified by:
finishingFailedin interfacePublicationJob- Parameters:
publicationId- Id of the document, which should be processed.publications- the publicationscause- 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
-