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
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.LogThe log object for this class.protected final CmsPublishEngineThe publish engine. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCmsPublishHistory(CmsPublishEngine publishEngine) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadd(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.BuffergetQueue(int size) Returns (and initializes) the queue.protected voidInitializes the internal FIFO queue with publish jobs from the database.protected voidremove(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
CmsPublishJobFinishedobjects
-
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
-