Class TemporaryDocumentJob

java.lang.Object
com.priint.pubserver.comet.renderer.TemporaryDocumentJob
All Implemented Interfaces:
RendererJob

@Deprecated public abstract class TemporaryDocumentJob extends Object implements RendererJob
Deprecated.
The Class TemporaryDocumentJob.
  • Constructor Details

    • TemporaryDocumentJob

      public TemporaryDocumentJob()
      Deprecated.
  • Method Details

    • getName

      public String getName()
      Deprecated.
      Description copied from interface: RendererJob

      Gets the job name (e.g. for log output)

      Specified by:
      getName in interface RendererJob
      Returns:
      the job name
    • getJobExecutionFlag

      public Object getJobExecutionFlag(JobExecutionFlag flag)
      Deprecated.
      Description copied from interface: RendererJob

      Gets execution flags for this job.

      See the JobExecutionFlag enumeration for a list of available flags supported for DocumentJobs and the default value for these flags.

      Specified by:
      getJobExecutionFlag in interface RendererJob
      Parameters:
      flag - the flag
      Returns:
      value for this execution flag
    • prepareJob

      public void prepareJob(String documentId, String documentPath) throws PubServerException
      Deprecated.
      Description copied from interface: RendererJob

      Called 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:
      prepareJob in interface RendererJob
      Parameters:
      documentId - Id of the document, which will be processed in this job
      documentPath - real path of the document
      Throws:
      PubServerException - the pub server exception
    • finishJob

      public void finishJob(String documentId, String documentPath) throws PubServerException
      Deprecated.
      Description copied from interface: RendererJob

      Called 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:
      finishJob in interface RendererJob
      Parameters:
      documentId - Id of the document, which has been processed.
      documentPath - real path of the document
      Throws:
      PubServerException - the pub server exception
    • executionFailed

      public void executionFailed(String documentId, Throwable cause)
      Deprecated.
      Description copied from interface: RendererJob

      Called when job execution fails

      Called, when an exception was raised during the RendererJob.executeJob(String, String, Comet) call.

      Specified by:
      executionFailed in interface RendererJob
      Parameters:
      documentId - Id of the document, which should be processed.
      cause - exception caught during job execution
    • preconditionsFailed

      public void preconditionsFailed(String documentId, Throwable cause)
      Deprecated.
      Description copied from interface: RendererJob

      Called when checking preconditions fails

      Called, when an exception was raised during checking job preconditions.

      Specified by:
      preconditionsFailed in interface RendererJob
      Parameters:
      documentId - Id of the document, which should be processed.
      cause - exception caught during job execution
    • preparationFailed

      public void preparationFailed(String documentId, Throwable cause)
      Deprecated.
      Description copied from interface: RendererJob

      Called when preparing the job fails

      Called, when an exception was raised during the RendererJob.prepareJob(String, String) call.

      Specified by:
      preparationFailed in interface RendererJob
      Parameters:
      documentId - Id of the document, which should be processed.
      cause - exception caught during job preparation
    • finishingFailed

      public void finishingFailed(String documentId, Throwable cause)
      Deprecated.
      Description copied from interface: RendererJob

      Called when finishing the job fails

      Called, when an exception was raised during the RendererJob.finishJob(String, String) call.

      Specified by:
      finishingFailed in interface RendererJob
      Parameters:
      documentId - Id of the document, which should be processed.
      cause - exception caught during job finishing