Class IndexingEvent

java.lang.Object
org.dlese.dpc.repository.indexing.IndexingEvent

public class IndexingEvent extends Object
An event that describes an indexing action that has been requested.
Author:
John Weatherley
  • Field Details

    • INDEXER_READY

      public static final int INDEXER_READY
      Indicates the index is ready to recieve indexing actions.
      See Also:
    • UPDATE_COLLECTIONS

      public static final int UPDATE_COLLECTIONS
      Indicates the watcher should update it's list of collections.
      See Also:
    • BEGIN_INDEXING_ALL_COLLECTIONS

      public static final int BEGIN_INDEXING_ALL_COLLECTIONS
      Indicates the watcher should begin indexing all collections.
      See Also:
    • ABORT_INDEXING

      public static final int ABORT_INDEXING
      Indicates the watcher should abort indexing immediately.
      See Also:
    • BEGIN_INDEXING_COLLECTION

      public static final int BEGIN_INDEXING_COLLECTION
      Indicates the watcher should update a given collection.
      See Also:
    • CONFIGURE_AND_INITIALIZE

      public static final int CONFIGURE_AND_INITIALIZE
      Indicates the watcher should update its configuration to get any changes and (re)initialize.
      See Also:
  • Constructor Details

    • IndexingEvent

      protected IndexingEvent(int type, String collectionKey, CollectionIndexer collectionIndexer)
      Constructor for the IndexingEvent object
      Parameters:
      type - The event type
      collectionKey - The collectionKey
      collectionIndexer - The CollectionIndexer instance
    • IndexingEvent

      public IndexingEvent(int type)
      Constructor for the IndexingEvent object
      Parameters:
      type - The event type
  • Method Details

    • getType

      public int getType()
      Gets the event type.
      Returns:
      The type value
    • getCollectionKey

      public String getCollectionKey()
      Gets the collectionKey attribute of the IndexingEvent object
      Returns:
      The collectionKey value
    • getCollectionIndexer

      public CollectionIndexer getCollectionIndexer()
      Gets the collectionIndexer attribute of the IndexingEvent object
      Returns:
      The collectionIndexer value
    • toString

      public String toString()
      A String representation of this event.
      Overrides:
      toString in class Object
      Returns:
      A String representation of this event.