com.atlassian.confluence.search.lucene
Interface ConfluenceIndexManager

All Known Implementing Classes:
DefaultConfluenceIndexManager

public interface ConfluenceIndexManager

The Confluence Index Manager is the entry point to the Indexing Subsystem


Nested Class Summary
static class ConfluenceIndexManager.IndexQueueFlushMode
          Enum indicating the mode in which to flush the queue.
 
Method Summary
 boolean flushQueue()
          Flush the index queue, processing all of the tasks.
 boolean flushQueue(boolean batch)
          Deprecated. use flushQueue(FlushMode)
 boolean flushQueue(ConfluenceIndexManager.IndexQueueFlushMode flushMode)
          Flush the index queue, processing a batch of the tasks
 FlushStatistics getLastNonEmptyFlushStats()
           
 IndexingTask getLastReindexingTask()
           
 IndexTaskQueue getTaskQueue()
          Retrieve an instance of the systems index queue.
 boolean isFlushing()
          Returns true if the the index queue is currently being flushed.
 boolean isReIndexing()
          Returns true if the system is currently being reindexed.
 void optimizeIndex()
          Enqueues an Optimize Index Task
 void reIndex()
          Trigger a system wide reindex.
 void resetIndexQueue()
          Resetting the index queue removes all entries from the queue without processing them.
 void unIndexAll()
           
 

Method Detail

isFlushing

boolean isFlushing()
Returns true if the the index queue is currently being flushed.

Returns:
true if flushing, false otherwise.

isReIndexing

boolean isReIndexing()
Returns true if the system is currently being reindexed.

Returns:
true if flushing, false otherwise.

flushQueue

boolean flushQueue(ConfluenceIndexManager.IndexQueueFlushMode flushMode)
Flush the index queue, processing a batch of the tasks

Parameters:
batch - - whether to flush the entire queue, or just one batch of batchsize as specified by the system property index.queue.batch.size
Returns:
whether the flush actually took place

flushQueue

@Deprecated
boolean flushQueue(boolean batch)
Deprecated. use flushQueue(FlushMode)

Flush the index queue, processing a batch of the tasks

Parameters:
batch - - whether to flush the entire queue, or just one batch of batchsize as specified by the system property index.queue.batch.size
Returns:
whether the flush actually took place

flushQueue

boolean flushQueue()
Flush the index queue, processing all of the tasks.

Returns:
whether the flush actually took place

reIndex

void reIndex()
Trigger a system wide reindex.


unIndexAll

void unIndexAll()

optimizeIndex

void optimizeIndex()
Enqueues an Optimize Index Task


getTaskQueue

IndexTaskQueue getTaskQueue()
Retrieve an instance of the systems index queue.


getLastReindexingTask

IndexingTask getLastReindexingTask()

getLastNonEmptyFlushStats

FlushStatistics getLastNonEmptyFlushStats()

resetIndexQueue

void resetIndexQueue()
Resetting the index queue removes all entries from the queue without processing them.



Copyright © 2003-2013 Atlassian. All Rights Reserved.