Class IndexEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- org.alfresco.repo.search.impl.lucene.index.IndexEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class IndexEvent extends org.springframework.context.ApplicationEventA 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
-
-
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 intgetCount()Gets the event instance count.java.lang.StringgetDescription()Gets the event description.IndexMonitorgetIndexMonitor()Gets the source index monitor.
-
-
-
Constructor Detail
-
IndexEvent
public IndexEvent(IndexMonitor source, java.lang.String description, int count)
The Constructor.- Parameters:
source- the source index monitordescription- the event descriptioncount- 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
-
-