Class CollectionIndexingObserver
java.lang.Object
org.dlese.dpc.schemedit.repository.CollectionIndexingObserver
- All Implemented Interfaces:
FileIndexingObserver
RepositoryIndexingObsever initializes IDGenerators for each collection after
reindexing the entire repository (all collections). This is necessary
because if metadata records have been added by hand (outside the DCS), then
the existing "nextID" may no longer be valid.
- Author:
- ostwald
-
Field Summary
Fields inherited from interface org.dlese.dpc.index.FileIndexingObserver
INDEXING_COMPLETED_ABORTED, INDEXING_COMPLETED_DIR_DOES_NOT_EXIST, INDEXING_COMPLETED_DIR_READ_ERROR, INDEXING_COMPLETED_ERROR, INDEXING_COMPLETED_ITEM_ERROR, INDEXING_COMPLETED_SUCCESS -
Constructor Summary
ConstructorsConstructorDescriptionCollectionIndexingObserver(String collectionKey, CollectionRegistry collectionRegistry, RepositoryManager rm) Constructor for the CollectionIndexingObserver object -
Method Summary
Modifier and TypeMethodDescriptionprotected static final StringReturn a string for the current time and date, sutiable for display in log files and output to standout:voidindexingCompleted(int status, String message) Called when indexing is complete.static voidsetDebug(boolean db) Sets the debug attribute of the object
-
Constructor Details
-
CollectionIndexingObserver
public CollectionIndexingObserver(String collectionKey, CollectionRegistry collectionRegistry, RepositoryManager rm) Constructor for the CollectionIndexingObserver object- Parameters:
collectionRegistry- the collectionRegistry (contains IDGenerators)rm- the repositoryManager
-
-
Method Details
-
indexingCompleted
Called when indexing is complete.- Specified by:
indexingCompletedin interfaceFileIndexingObserver- Parameters:
status- status code returned by indexermessage- indexing message
-
getDateStamp
Return a string for the current time and date, sutiable for display in log files and output to standout:- Returns:
- The dateStamp value
-
setDebug
public static void setDebug(boolean db) Sets the debug attribute of the object- Parameters:
db- The new debug value
-