|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.publish.CmsPublishQueue
public class CmsPublishQueue
This queue contains all not jet started publish jobs.
Field Summary | |
---|---|
protected CmsPublishEngine |
m_publishEngine
The publish engine. |
Constructor Summary | |
---|---|
protected |
CmsPublishQueue(CmsPublishEngine publishEngine)
Default constructor, for an empty queue. |
Method Summary | |
---|---|
protected boolean |
abortPublishJob(CmsPublishJobInfoBean publishJob)
Aborts the given publish job. |
protected void |
add(CmsPublishJobInfoBean publishJob)
Pushes a new publish job with the given information in publish queue. |
protected java.util.List |
asList()
Returns an unmodifiable list representation of this queue. |
protected boolean |
contains(CmsPublishJobInfoBean publishJob)
Checks if the given job is already in the queue, this does only check for the identical job. |
static org.apache.commons.collections.Buffer |
getQueue()
Creates the buffer used as publish queue. |
protected void |
initialize(CmsObject adminCms,
boolean revive)
Initializes the internal FIFO queue with publish jobs from the database. |
protected boolean |
isEmpty()
Checks if the queue is empty. |
protected CmsPublishJobInfoBean |
next()
Returns the next publish job to be published, removing it from the queue, or null if the queue is empty. |
protected void |
remove(CmsPublishJobInfoBean publishJob)
Removes the given job from the list. |
protected void |
update(CmsPublishJobInfoBean publishJob)
Updates the given job in the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final CmsPublishEngine m_publishEngine
Constructor Detail |
---|
protected CmsPublishQueue(CmsPublishEngine publishEngine)
publishEngine
- the publish engine instanceMethod Detail |
---|
public static org.apache.commons.collections.Buffer getQueue()
protected boolean abortPublishJob(CmsPublishJobInfoBean publishJob)
publishJob
- the publish job to abort
true
if the publish job was foundprotected void add(CmsPublishJobInfoBean publishJob) throws CmsException
If possible, the publish job starts immediately.
publishJob
- the publish job to enqueue
CmsException
- if something goes wrongprotected java.util.List asList()
CmsPublishJobEnqueued
objectsprotected boolean contains(CmsPublishJobInfoBean publishJob)
publishJob
- the publish job to check for
protected void initialize(CmsObject adminCms, boolean revive)
adminCms
- an admin cms objectrevive
- true
if the publish queue should be revived from the databaseprotected boolean isEmpty()
true
if the queue is emptyprotected CmsPublishJobInfoBean next()
null
if the queue is empty.
protected void remove(CmsPublishJobInfoBean publishJob) throws CmsException
publishJob
- the publish job to remove
CmsException
- if something goes wrongprotected void update(CmsPublishJobInfoBean publishJob)
publishJob
- the publish job to
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |