public class CompositeIndexManager extends Object implements ConfluenceIndexManager
IndexManager
s under the hood whilst maintaining backwards compatibilityConfluenceIndexManager.IndexQueueFlushMode
Constructor and Description |
---|
CompositeIndexManager(List<IncrementalIndexManager> incrementalManagers,
IndexTaskQueue<ConfluenceIndexTask> compositeTaskQueue,
FullReindexManager fullReindexManager) |
Modifier and Type | Method and Description |
---|---|
void |
addTask(ConfluenceIndexTask task)
Adds a new task to the index queue
|
boolean |
flushQueue(ConfluenceIndexManager.IndexQueueFlushMode flushMode) |
boolean |
flushQueue(IndexManager.IndexQueueFlushMode flushMode)
Flushes the index queue, processing a batch of the tasks
|
FlushStatistics |
getLastNonEmptyFlushStats() |
ReIndexTask |
getLastReindexingTask() |
int |
getQueueSize() |
IndexTaskQueue<ConfluenceIndexTask> |
getTaskQueue()
Deprecated.
since 7.9.0. Please use
IndexManager.getQueueSize() and IndexManager.addTask(ConfluenceIndexTask) |
boolean |
isFlushing()
Returns true if the the index queue is currently being flushed.
|
boolean |
isReIndexing()
Returns true if the system is currently being reindexed.
|
ReIndexTask |
reIndex()
Triggers a system wide reindex of all content.
|
ReIndexTask |
reIndex(EnumSet<ReIndexOption> options)
Triggers a system wide reindex with specified options, entities are loaded from the database.
|
ReIndexTask |
reIndex(EnumSet<ReIndexOption> options,
SearchQuery searchQuery)
Triggers a system wide re-index.
|
void |
resetIndexQueue()
Resets the index queue removes all entries from the queue without processing them.
|
void |
unIndexAll() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reIndex, reIndex
flushQueue
public CompositeIndexManager(List<IncrementalIndexManager> incrementalManagers, IndexTaskQueue<ConfluenceIndexTask> compositeTaskQueue, FullReindexManager fullReindexManager)
public boolean isFlushing()
IndexManager
isFlushing
in interface IndexManager
public boolean flushQueue(IndexManager.IndexQueueFlushMode flushMode)
IndexManager
flushQueue
in interface IndexManager
flushMode
- - whether to flush the entire queue, or just one batch of batchsize as specified by
the system property index.queue.batch.sizepublic boolean flushQueue(ConfluenceIndexManager.IndexQueueFlushMode flushMode)
flushQueue
in interface ConfluenceIndexManager
public ReIndexTask reIndex()
IndexManager
reIndex
in interface IndexManager
public ReIndexTask reIndex(EnumSet<ReIndexOption> options)
IndexManager
reIndex
in interface IndexManager
public ReIndexTask reIndex(EnumSet<ReIndexOption> options, SearchQuery searchQuery)
IndexManager
reIndex
in interface IndexManager
options
- Optional. Allows a subset of all searchable content to be re-indexed.searchQuery
- A query that is used to load the entities to be re-indexed.public void unIndexAll()
unIndexAll
in interface IndexManager
public ReIndexTask getLastReindexingTask()
getLastReindexingTask
in interface IndexManager
public boolean isReIndexing()
IndexManager
isReIndexing
in interface IndexManager
public void resetIndexQueue()
IndexManager
resetIndexQueue
in interface IndexManager
@Deprecated public IndexTaskQueue<ConfluenceIndexTask> getTaskQueue()
IndexManager.getQueueSize()
and IndexManager.addTask(ConfluenceIndexTask)
IndexManager
getTaskQueue
in interface IndexManager
public FlushStatistics getLastNonEmptyFlushStats()
getLastNonEmptyFlushStats
in interface IndexManager
getLastNonEmptyFlushStats
in interface ConfluenceIndexManager
public int getQueueSize()
getQueueSize
in interface IndexManager
public void addTask(ConfluenceIndexTask task)
IndexManager
addTask
in interface IndexManager
Copyright © 2003–2023 Atlassian. All rights reserved.