@Internal public class DelegatingIndexManager extends Object implements ConfluenceIndexManager
ConfluenceIndexManager.IndexQueueFlushMode| Constructor and Description |
|---|
DelegatingIndexManager(ConfluenceIndexManager luceneIndexManager,
IndexManager esIndexManager,
DarkFeaturesManager darkFeaturesManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
flushQueue(IndexManager.IndexQueueFlushMode flushMode)
Flushes the index queue, processing a batch of the tasks
|
FlushStatistics |
getLastNonEmptyFlushStats() |
ReIndexTask |
getLastReindexingTask() |
IndexTaskQueue |
getTaskQueue()
Retrieves the index task queue that is being used by this manager.
|
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(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, waitflushQueue, reIndex, reIndexflushQueue, reIndexpublic DelegatingIndexManager(ConfluenceIndexManager luceneIndexManager, IndexManager esIndexManager, DarkFeaturesManager darkFeaturesManager)
public boolean isFlushing()
IndexManagerisFlushing in interface IndexManagerpublic boolean isReIndexing()
IndexManagerisReIndexing in interface IndexManagerpublic boolean flushQueue(IndexManager.IndexQueueFlushMode flushMode)
IndexManagerflushQueue in interface IndexManagerflushMode - - whether to flush the entire queue, or just one batch of batchsize as specified by
the system property index.queue.batch.sizepublic ReIndexTask reIndex(EnumSet<ReIndexOption> options, SearchQuery searchQuery)
IndexManagerreIndex in interface IndexManageroptions - 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 ReIndexTask reIndex(EnumSet<ReIndexOption> options)
IndexManagerreIndex in interface IndexManagerpublic void unIndexAll()
unIndexAll in interface IndexManagerpublic IndexTaskQueue getTaskQueue()
IndexManagergetTaskQueue in interface IndexManagerpublic ReIndexTask getLastReindexingTask()
getLastReindexingTask in interface IndexManagerpublic FlushStatistics getLastNonEmptyFlushStats()
getLastNonEmptyFlushStats in interface ConfluenceIndexManagerpublic void resetIndexQueue()
IndexManagerresetIndexQueue in interface IndexManagerCopyright © 2003–2017 Atlassian. All rights reserved.