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

public class OptimizeIndexTask
extends java.lang.Object
implements IndexTask, com.atlassian.bonnie.ILuceneConnection.WriterAction


Constructor Summary
OptimizeIndexTask()
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.String getDescription()
          A description of the task that can be presented to the user via the UI.
 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
 

Constructor Detail

OptimizeIndexTask

public OptimizeIndexTask()
Method Detail

getDescription

public java.lang.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 java.io.IOException
Specified by:
perform in interface com.atlassian.bonnie.ILuceneConnection.WriterAction
Throws:
java.io.IOException

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.