org.outerj.daisy.ftindex
Class FullTextIndexUpdater

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

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, org.apache.avalon.framework.activity.Disposable

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 dispose()
           
 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

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

initialize

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

dispose

public void dispose()
Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable

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 © -2012 . All Rights Reserved.