Interface ItemIndexer

All Superinterfaces:
EventListener
All Known Implementing Classes:
NDRIndexer

public interface ItemIndexer extends EventListener
Interface for notifying watchers of indexing requests and prompts to configure and initialize.
Author:
John Weatherley
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Indicates a request has been made for an indexing action to take place.
    void
    Indicates the directory where ItemIndexer config files reside.
  • Method Details

    • setConfigDirectory

      void setConfigDirectory(File configDir) throws Exception
      Indicates the directory where ItemIndexer config files reside. ItemIndexer instances may work with their own configuration file and find them here. As a best practice it is recommended that the ItemIndexer use the name of its class in file names that it uses for configuration. It is up to the ItemIndexer to process these files. This method is called at start up time before any indexing events are fired and later any time the config file has been modified.
      Parameters:
      configDir - The directory where the config files reside
      Throws:
      Exception - Exception should be thrown if an error occurs
    • indexingActionRequested

      void indexingActionRequested(IndexingEvent e) throws Exception
      Indicates a request has been made for an indexing action to take place.
      Parameters:
      e - The indexing event indicating the action that should take place
      Throws:
      Exception - Exception should be thrown if an error occurs