com.atlassian.confluence.search.lucene.tasks
Class OptimizeIndexTask

java.lang.Object
  extended by com.atlassian.confluence.search.lucene.tasks.OptimizeIndexTask
All Implemented Interfaces:
com.atlassian.bonnie.ILuceneConnection.WriterAction, IndexTask, ConfluenceIndexTask

public class OptimizeIndexTask
extends Object
implements ConfluenceIndexTask

Optimizes the index.


Method Summary
 boolean equals(Object other)
           
 String getDescription()
          A description of the task that can be presented to the user via the UI.
static OptimizeIndexTask getInstance()
           
 int hashCode()
           
 void perform(org.apache.lucene.index.IndexWriter writer)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static OptimizeIndexTask getInstance()

getDescription

public String getDescription()
Description copied from interface: IndexTask
A description of the task that can be presented to the user via the UI.

Specified by:
getDescription in interface IndexTask
Returns:
an readable message.

perform

public void perform(org.apache.lucene.index.IndexWriter writer)
             throws IOException
Specified by:
perform in interface com.atlassian.bonnie.ILuceneConnection.WriterAction
Throws:
IOException

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003-2011 Atlassian. All Rights Reserved.