Class IndexEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class IndexEvent
    extends org.springframework.context.ApplicationEvent
    A class of event that notifies the listener of a significant event relating to a Lucene index. Useful for Monitoring purposes.
    Author:
    dward
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexEvent​(IndexMonitor source, java.lang.String description, int count)
      The Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCount()
      Gets the event instance count.
      java.lang.String getDescription()
      Gets the event description.
      IndexMonitor getIndexMonitor()
      Gets the source index monitor.
      • Methods inherited from class org.springframework.context.ApplicationEvent

        getTimestamp
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IndexEvent

        public IndexEvent​(IndexMonitor source,
                          java.lang.String description,
                          int count)
        The Constructor.
        Parameters:
        source - the source index monitor
        description - the event description
        count - its instance count
    • Method Detail

      • getIndexMonitor

        public IndexMonitor getIndexMonitor()
        Gets the source index monitor.
        Returns:
        the index monitor
      • getDescription

        public java.lang.String getDescription()
        Gets the event description.
        Returns:
        the description
      • getCount

        public int getCount()
        Gets the event instance count.
        Returns:
        the count