fr.paris.lutece.plugins.ods.service.search
Class SearchIndexerDaemon<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GElu extends IElu,GFichier extends IFichier<GSeance,GFichier>,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>

java.lang.Object
  extended by fr.paris.lutece.portal.service.daemon.Daemon
      extended by fr.paris.lutece.plugins.ods.service.search.SearchIndexerDaemon<GSeance,GSeanceFilter,GElu,GFichier,GVoeuAmendement,GPDD>
All Implemented Interfaces:
java.lang.Runnable

public class SearchIndexerDaemon<GSeance extends ISeance,GSeanceFilter extends ISeanceFilter,GElu extends IElu,GFichier extends IFichier<GSeance,GFichier>,GVoeuAmendement extends IVoeuAmendement<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>,GPDD extends IPDD<GVoeuAmendement,GSeance,GElu,GFichier,GPDD>>
extends fr.paris.lutece.portal.service.daemon.Daemon

Daemon d'indexation: lance à intervalle régulier l'indexation incrémentale. A la première éxécution le daemon crée l'index sur le serveur; cet index sera unique par machine serveur même en cas de plusieurs serveurs Tomcat sur une seule et même machine.


Field Summary
protected  IndexerActionHome _indexerActionHome
           
protected  IndexerHome _indexerHome
           
protected  int _nIdSeance
           
protected static java.lang.String PROPERTY_INDEXER_NAME
           
 
Fields inherited from class fr.paris.lutece.portal.service.daemon.Daemon
RESULT_FAILED, RESULT_PROCESSING, RESULT_SUCCESS, RESULT_UNKNOWN, STATUS_RUNNING, STATUS_STOPPED
 
Constructor Summary
SearchIndexerDaemon()
           
 
Method Summary
protected  void changeSeance(ISeance prochaineSeance, Indexer indexer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Fonction qui ajoute les documents de la séance passée à l'index des archives, et réinitialise l'index prochaine séance
 void run()
          Lance l'indexation à intervalle régulier
 
Methods inherited from class fr.paris.lutece.portal.service.daemon.Daemon
getLastRunLogs, getPluginName, getResult, setLastRunLogs, setPluginName, setResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_INDEXER_NAME

protected static final java.lang.String PROPERTY_INDEXER_NAME
See Also:
Constant Field Values

_nIdSeance

protected int _nIdSeance

_indexerHome

protected IndexerHome _indexerHome

_indexerActionHome

protected IndexerActionHome _indexerActionHome
Constructor Detail

SearchIndexerDaemon

public SearchIndexerDaemon()
Method Detail

run

public void run()
Lance l'indexation à intervalle régulier


changeSeance

protected void changeSeance(ISeance prochaineSeance,
                            Indexer indexer,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Fonction qui ajoute les documents de la séance passée à l'index des archives, et réinitialise l'index prochaine séance

Parameters:
prochaineSeance - la prochaine séance
indexer - l'indexer
plugin - le plugin


Copyright © 2010 Mairie de Paris. All Rights Reserved.