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, wait
flushQueue
public 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()
IncrementalIndexManager
isFlushing
in interface IncrementalIndexManager
public boolean flushQueue(IndexManager.IndexQueueFlushMode flushMode)
IncrementalIndexManager
flushQueue
in interface IncrementalIndexManager
flushMode
- - 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 IncrementalIndexManager
public FlushStatistics getLastNonEmptyFlushStats()
getLastNonEmptyFlushStats
in interface IncrementalIndexManager
null
if no flush has occured from system start.public int getQueueSize()
getQueueSize
in interface IncrementalIndexManager
public void addTask(ConfluenceIndexTask task)
IncrementalIndexManager
addTask
in interface IncrementalIndexManager
Copyright © 2003–2021 Atlassian. All rights reserved.