DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.repository
Class CollectionIndexingObserver

java.lang.Object
  extended by org.dlese.dpc.schemedit.repository.CollectionIndexingObserver
All Implemented Interfaces:
FileIndexingObserver

public class CollectionIndexingObserver
extends Object
implements 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
CollectionIndexingObserver(String collectionKey, CollectionRegistry collectionRegistry, RepositoryManager rm)
          Constructor for the CollectionIndexingObserver object
 
Method Summary
protected static String getDateStamp()
          Return a string for the current time and date, sutiable for display in log files and output to standout:
 void indexingCompleted(int status, String message)
          Called when indexing is complete.
static void setDebug(boolean db)
          Sets the debug attribute of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionIndexingObserver

public CollectionIndexingObserver(String collectionKey,
                                  CollectionRegistry collectionRegistry,
                                  RepositoryManager rm)
Constructor for the CollectionIndexingObserver object

Parameters:
collectionRegistry - the collectionRegistry (contains IDGenerators)
rm - the repositoryManager
Method Detail

indexingCompleted

public void indexingCompleted(int status,
                              String message)
Called when indexing is complete.

Specified by:
indexingCompleted in interface FileIndexingObserver
Parameters:
status - status code returned by indexer
message - indexing message

getDateStamp

protected static final String 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

DLESE Tools
v1.6.0