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

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

public class AddDocumentIndexTask
extends BaseContentIndexTask
implements com.atlassian.bonnie.ILuceneConnection.WriterAction


Field Summary
static org.apache.log4j.Category LOG
           
 
Fields inherited from class com.atlassian.confluence.search.lucene.tasks.BaseContentIndexTask
anyTypeObjectDao, documentBuilder, handle, spaceKey, target
 
Constructor Summary
AddDocumentIndexTask(com.atlassian.bonnie.Searchable target)
           
AddDocumentIndexTask(java.lang.String handle)
           
 
Method Summary
 java.lang.String getDescription()
          A human readable description of this index task.
 void perform(org.apache.lucene.index.IndexWriter writer)
           
 
Methods inherited from class com.atlassian.confluence.search.lucene.tasks.BaseContentIndexTask
createHandle, createHandle, equals, getHandle, getTarget, hashCode, setAnyTypeObjectDao, setDocumentBuilder, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Category LOG
Constructor Detail

AddDocumentIndexTask

public AddDocumentIndexTask(com.atlassian.bonnie.Searchable target)

AddDocumentIndexTask

public AddDocumentIndexTask(java.lang.String handle)
                     throws java.text.ParseException
Throws:
java.text.ParseException
Method Detail

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

getDescription

public java.lang.String getDescription()
A human readable description of this index task.

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


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