Class IndexingEvent
java.lang.Object
org.dlese.dpc.repository.indexing.IndexingEvent
An event that describes an indexing action that has been requested.
- Author:
- John Weatherley
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates the watcher should abort indexing immediately.static final intIndicates the watcher should begin indexing all collections.static final intIndicates the watcher should update a given collection.static final intIndicates the watcher should update its configuration to get any changes and (re)initialize.static final intIndicates the index is ready to recieve indexing actions.static final intIndicates the watcher should update it's list of collections. -
Constructor Summary
ConstructorsModifierConstructorDescriptionIndexingEvent(int type) Constructor for the IndexingEvent objectprotectedIndexingEvent(int type, String collectionKey, CollectionIndexer collectionIndexer) Constructor for the IndexingEvent object -
Method Summary
-
Field Details
-
INDEXER_READY
public static final int INDEXER_READYIndicates the index is ready to recieve indexing actions.- See Also:
-
UPDATE_COLLECTIONS
public static final int UPDATE_COLLECTIONSIndicates the watcher should update it's list of collections.- See Also:
-
BEGIN_INDEXING_ALL_COLLECTIONS
public static final int BEGIN_INDEXING_ALL_COLLECTIONSIndicates the watcher should begin indexing all collections.- See Also:
-
ABORT_INDEXING
public static final int ABORT_INDEXINGIndicates the watcher should abort indexing immediately.- See Also:
-
BEGIN_INDEXING_COLLECTION
public static final int BEGIN_INDEXING_COLLECTIONIndicates the watcher should update a given collection.- See Also:
-
CONFIGURE_AND_INITIALIZE
public static final int CONFIGURE_AND_INITIALIZEIndicates the watcher should update its configuration to get any changes and (re)initialize.- See Also:
-
-
Constructor Details
-
IndexingEvent
Constructor for the IndexingEvent object- Parameters:
type- The event typecollectionKey- The collectionKeycollectionIndexer- 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
Gets the collectionKey attribute of the IndexingEvent object- Returns:
- The collectionKey value
-
getCollectionIndexer
Gets the collectionIndexer attribute of the IndexingEvent object- Returns:
- The collectionIndexer value
-
toString
A String representation of this event.
-