|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.search.lucene.queue.DatabaseIndexTaskQueue
An implementation of the IndexTaskQueue backed by the database.
Field Summary | |
static org.apache.log4j.Category |
log
|
Constructor Summary | |
DatabaseIndexTaskQueue()
|
Method Summary | |
Date |
calculateLastFlushTime()
|
void |
deleteOldEntries()
Delete all entries older then 2 days from the database. |
void |
enqueue(IndexTask task)
Add a new index task to the queue. |
void |
enqueueAll(Collection tasks)
Add a collection of index tasks to the queue. |
List |
flushQueue()
Flush the contents of the queue, returning those elements currently queued as the result. |
Date |
getExactLastFlushTimeFromDisk()
|
List |
getQueuedEntries()
Retrieve the list of index tasks currently queued. |
int |
getSize()
Retrieve the number of tasks currently queued. |
void |
reset()
Reseting the queue removes all queued index tasks from the queue without flushing. |
void |
setBootstrapManager(BootstrapManager bootstrapManager)
|
void |
setIndexTaskFactory(IndexTaskFactory indexTaskFactory)
|
void |
setQueueEntryDao(IndexQueueEntryDao queueEntryDao)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final org.apache.log4j.Category log
Constructor Detail |
public DatabaseIndexTaskQueue()
Method Detail |
public void enqueue(IndexTask task)
enqueue
in interface IndexTaskQueue
task
- public void enqueueAll(Collection tasks)
enqueueAll
in interface IndexTaskQueue
tasks
- public int getSize()
getSize
in interface IndexTaskQueue
public List getQueuedEntries()
getQueuedEntries
in interface IndexTaskQueue
public List flushQueue()
IndexTaskQueue
flushQueue
in interface IndexTaskQueue
public Date calculateLastFlushTime()
public Date getExactLastFlushTimeFromDisk()
public void deleteOldEntries()
public void reset()
reset
in interface IndexTaskQueue
public void setQueueEntryDao(IndexQueueEntryDao queueEntryDao)
public void setBootstrapManager(BootstrapManager bootstrapManager)
public void setIndexTaskFactory(IndexTaskFactory indexTaskFactory)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |