Class CmsPublishHistory

java.lang.Object
org.opencms.publish.CmsPublishHistory

public class CmsPublishHistory extends Object
List of already finished publish jobs.

Since:
6.5.5
  • Field Details

    • LOG

      protected static final org.apache.commons.logging.Log LOG
      The log object for this class.
    • m_publishEngine

      The publish engine.
  • Constructor Details

  • Method Details

    • getQueue

      public static org.apache.commons.collections.Buffer getQueue(int size)
      Returns (and initializes) the queue.

      Parameters:
      size - the history size
      Returns:
      the queue buffer
    • add

      protected void add(CmsPublishJobInfoBean publishJob) throws CmsException
      Adds the given publish job to the list.

      Parameters:
      publishJob - the publish job object to add
      Throws:
      CmsException - if something goes wrong
    • asList

      Returns an unmodifiable list representation of this list.

      Returns:
      a list of CmsPublishJobFinished objects
    • initialize

      protected void initialize()
      Initializes the internal FIFO queue with publish jobs from the database.

    • remove

      protected void remove(CmsPublishJobInfoBean publishJob) throws CmsException
      Removes the given job from the list.

      Parameters:
      publishJob - the publish job to remove
      Throws:
      CmsException - if something goes wrong