org.opencms.publish
public class CmsPublishHistory extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
LOG
The log object for this class.
|
protected CmsPublishEngine |
m_publishEngine
The publish engine.
|
Modifier | Constructor and Description |
---|---|
protected |
CmsPublishHistory(CmsPublishEngine publishEngine)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
add(CmsPublishJobInfoBean publishJob)
Adds the given publish job to the list.
|
protected java.util.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 |
initialize()
Initializes the internal FIFO queue with publish jobs from the database.
|
protected void |
remove(CmsPublishJobInfoBean publishJob)
Removes the given job from the list.
|
protected static final org.apache.commons.logging.Log LOG
protected final CmsPublishEngine m_publishEngine
protected CmsPublishHistory(CmsPublishEngine publishEngine)
publishEngine
- the publish engine instancepublic static org.apache.commons.collections.Buffer getQueue(int size)
size
- the history sizeprotected void add(CmsPublishJobInfoBean publishJob) throws CmsException
publishJob
- the publish job object to addCmsException
- if something goes wrongprotected java.util.List<CmsPublishJobFinished> asList()
CmsPublishJobFinished
objectsprotected void initialize()
protected void remove(CmsPublishJobInfoBean publishJob) throws CmsException
publishJob
- the publish job to removeCmsException
- if something goes wrong