@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, wait
flushQueue, reIndex, reIndex
flushQueue, reIndex
public DelegatingIndexManager(ConfluenceIndexManager luceneIndexManager, IndexManager esIndexManager, DarkFeaturesManager darkFeaturesManager)
public boolean isFlushing()
IndexManager
isFlushing
in interface IndexManager
public boolean isReIndexing()
IndexManager
isReIndexing
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 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 ReIndexTask reIndex(EnumSet<ReIndexOption> options)
IndexManager
reIndex
in interface IndexManager
public void unIndexAll()
unIndexAll
in interface IndexManager
public IndexTaskQueue getTaskQueue()
IndexManager
getTaskQueue
in interface IndexManager
public ReIndexTask getLastReindexingTask()
getLastReindexingTask
in interface IndexManager
public FlushStatistics getLastNonEmptyFlushStats()
getLastNonEmptyFlushStats
in interface ConfluenceIndexManager
public void resetIndexQueue()
IndexManager
resetIndexQueue
in interface IndexManager
Copyright © 2003–2017 Atlassian. All rights reserved.