org.outerj.daisy.ftindex
Class FullTextIndexUpdater

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.outerj.daisy.ftindex.FullTextIndexUpdater
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable, FullTextIndexUpdaterMBean, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable

public class FullTextIndexUpdater
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.activity.Initializable, FullTextIndexUpdaterMBean

This component receives repository events from JMS, and if the event would influence the full text index, adds an event upon the fulltext task queue. Also, it processes the message on the fulltext task queue, by extracting indexable content from the documents and calling the FullTextIndex component to update its index for the document.


Constructor Summary
FullTextIndexUpdater()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 void initialize()
           
 void reIndexAllDocuments()
           
 void reIndexDocuments(java.lang.String query)
           
 void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullTextIndexUpdater

public FullTextIndexUpdater()
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Throws:
java.lang.Exception

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

service

public void service(org.apache.avalon.framework.service.ServiceManager serviceManager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException

reIndexDocuments

public void reIndexDocuments(java.lang.String query)
                      throws java.lang.Exception
Specified by:
reIndexDocuments in interface FullTextIndexUpdaterMBean
Throws:
java.lang.Exception

reIndexAllDocuments

public void reIndexAllDocuments()
                         throws java.lang.Exception
Specified by:
reIndexAllDocuments in interface FullTextIndexUpdaterMBean
Throws:
java.lang.Exception


Copyright © -2005 . All Rights Reserved.