Package org.opencms.publish
Class CmsPublishHistory
java.lang.Object
org.opencms.publish.CmsPublishHistory
List of already finished publish jobs.
- Since:
- 6.5.5
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.Log
The log object for this class.protected final CmsPublishEngine
The publish engine. -
Constructor Summary
ModifierConstructorDescriptionprotected
CmsPublishHistory
(CmsPublishEngine publishEngine) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
add
(CmsPublishJobInfoBean publishJob) Adds the given publish job to the list.protected List<CmsPublishJobFinished>
asList()
Returns an unmodifiable list representation of this list.static org.apache.commons.collections.Buffer
getQueue
(int size) Returns (and initializes) the queue.protected void
Initializes the internal FIFO queue with publish jobs from the database.protected void
remove
(CmsPublishJobInfoBean publishJob) Removes the given job from the list.
-
Field Details
-
LOG
The log object for this class. -
m_publishEngine
The publish engine.
-
-
Constructor Details
-
CmsPublishHistory
Default constructor.- Parameters:
publishEngine
- the publish engine instance
-
-
Method Details
-
getQueue
Returns (and initializes) the queue.- Parameters:
size
- the history size- Returns:
- the queue buffer
-
add
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
Initializes the internal FIFO queue with publish jobs from the database. -
remove
Removes the given job from the list.- Parameters:
publishJob
- the publish job to remove- Throws:
CmsException
- if something goes wrong
-