public class LuceneIncrementalIndexManager extends Object implements IncrementalIndexManager
| Modifier and Type | Field and Description |
|---|---|
static String |
QUEUE_BATCH_SIZE_KEY |
| Constructor and Description |
|---|
LuceneIncrementalIndexManager(IndexLockService lockService,
IndexTaskQueue<ConfluenceIndexTask> taskQueue,
com.atlassian.bonnie.ILuceneConnection luceneConnection,
org.hibernate.SessionFactory sessionFactory,
IndexTaskPerformer indexTaskPerformer,
com.atlassian.event.api.EventPublisher eventPublisher,
FullReindexManager fullReindexManager,
SearchIndex targetIndex) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(ConfluenceIndexTask task)
Adds a new task to the index queue
|
boolean |
flushQueue(IndexManager.IndexQueueFlushMode flushMode)
Flushes the index queue, processing a batch of the tasks
|
FlushStatistics |
getLastNonEmptyFlushStats() |
int |
getQueueSize() |
boolean |
isFlushing()
Returns true if the the index queue is currently being flushed.
|
void |
resetIndexQueue()
Delete all of the entries on the index queue.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflushQueuepublic static final String QUEUE_BATCH_SIZE_KEY
public LuceneIncrementalIndexManager(IndexLockService lockService, IndexTaskQueue<ConfluenceIndexTask> taskQueue, com.atlassian.bonnie.ILuceneConnection luceneConnection, org.hibernate.SessionFactory sessionFactory, IndexTaskPerformer indexTaskPerformer, com.atlassian.event.api.EventPublisher eventPublisher, FullReindexManager fullReindexManager, SearchIndex targetIndex)
public boolean isFlushing()
IncrementalIndexManagerisFlushing in interface IncrementalIndexManagerpublic boolean flushQueue(IndexManager.IndexQueueFlushMode flushMode)
IncrementalIndexManagerflushQueue in interface IncrementalIndexManagerflushMode - - whether to flush the entire queue, or just one batch of batchsize as specified by
the system property index.queue.batch.sizepublic void resetIndexQueue()
resetIndexQueue in interface IncrementalIndexManagerpublic FlushStatistics getLastNonEmptyFlushStats()
getLastNonEmptyFlushStats in interface IncrementalIndexManagernull if no flush has occured from system start.public int getQueueSize()
getQueueSize in interface IncrementalIndexManagerpublic void addTask(ConfluenceIndexTask task)
IncrementalIndexManageraddTask in interface IncrementalIndexManagerCopyright © 2003–2021 Atlassian. All rights reserved.