Class RepositoryIndexingObserver

java.lang.Object
org.dlese.dpc.schemedit.repository.RepositoryIndexingObserver
All Implemented Interfaces:
FileIndexingObserver

public class RepositoryIndexingObserver 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

  • Constructor Details

    • RepositoryIndexingObserver

      public RepositoryIndexingObserver(CollectionRegistry collectionRegistry, RepositoryManager rm)
      Constructor for the RepositoryIndexingObserver object
      Parameters:
      collectionRegistry - the collectionRegistry (contains IDGenerators)
      rm - the repositoryManager
  • Method Details

    • 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