|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager
public class DefaultConfluenceIndexManager
The Confluence Index Manager is the entry point to the majority of the indexing subsystem..
Field Summary | |
---|---|
static java.lang.String |
QUEUE_BATCH_SIZE_KEY
|
Constructor Summary | |
---|---|
DefaultConfluenceIndexManager()
|
Method Summary | |
---|---|
void |
flushQueue()
Flush the index queue, processing all of the tasks. |
void |
flushQueue(boolean batch)
Trigger a index queue flush. |
FlushStatistics |
getLastNonEmptyFlushStats()
|
IndexingTask |
getLastReindexingTask()
Retrieve the last reindexing task. |
IndexTaskQueue |
getTaskQueue()
Retrieve the index task queue that is being used by Confluence. |
boolean |
isFlushing()
Is the index queue currently being flushed? |
boolean |
isReIndexing()
Check whether or not reindexing is currently in progress. |
void |
optimizeIndex()
Enqueues an Optimize Index Task |
void |
reIndex()
Trigger an asynchronous reindex of the system. |
void |
resetIndexQueue()
Delete all of the entries on the index queue. |
void |
setEventManager(com.atlassian.event.EventManager eventManager)
|
void |
setIndexTaskFactory(IndexTaskFactory indexTaskFactory)
|
void |
setIndexTaskPerformer(IndexTaskPerformer indexTaskPerformer)
|
void |
setLuceneConnection(com.atlassian.bonnie.ILuceneConnection luceneConnection)
|
void |
setTaskQueue(IndexTaskQueue taskQueue)
|
void |
unIndexAll()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String QUEUE_BATCH_SIZE_KEY
Constructor Detail |
---|
public DefaultConfluenceIndexManager()
Method Detail |
---|
public boolean isFlushing()
isFlushing
in interface ConfluenceIndexManager
public void flushQueue()
ConfluenceIndexManager
flushQueue
in interface ConfluenceIndexManager
public void flushQueue(boolean batch)
flushQueue
in interface ConfluenceIndexManager
public void resetIndexQueue()
resetIndexQueue
in interface ConfluenceIndexManager
public void optimizeIndex()
ConfluenceIndexManager
optimizeIndex
in interface ConfluenceIndexManager
public void reIndex()
getLastReindexingTask()
.
reIndex
in interface ConfluenceIndexManager
public boolean isReIndexing()
isReIndexing
in interface ConfluenceIndexManager
public IndexingTask getLastReindexingTask()
getLastReindexingTask
in interface ConfluenceIndexManager
public void unIndexAll()
unIndexAll
in interface ConfluenceIndexManager
public IndexTaskQueue getTaskQueue()
getTaskQueue
in interface ConfluenceIndexManager
public FlushStatistics getLastNonEmptyFlushStats()
getLastNonEmptyFlushStats
in interface ConfluenceIndexManager
public void setIndexTaskFactory(IndexTaskFactory indexTaskFactory)
public void setIndexTaskPerformer(IndexTaskPerformer indexTaskPerformer)
public void setEventManager(com.atlassian.event.EventManager eventManager)
public void setTaskQueue(IndexTaskQueue taskQueue)
taskQueue
- set by dependency injection, requiredpublic void setLuceneConnection(com.atlassian.bonnie.ILuceneConnection luceneConnection)
luceneConnection
- set by dependency injection, required
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |