Class SyncService


public class SyncService extends MonitoredTask
Threaded version of NDRSync
Author:
ostwald

  • Field Details

    • debug

      protected static boolean debug
      NOT YET DOCUMENTED
    • isProcessing

      protected boolean isProcessing
      NOT YET DOCUMENTED
    • stopProcessing

      protected boolean stopProcessing
      NOT YET DOCUMENTED
  • Constructor Details

    • SyncService

      public SyncService(SessionBean sessionBean, ServletContext servletContext) throws Exception
      Constructor for the SyncService object
      Parameters:
      sessionBean - NOT YET DOCUMENTED
      servletContext - NOT YET DOCUMENTED
      Throws:
      Exception - NOT YET DOCUMENTED
  • Method Details

    • getIsProcessing

      public boolean getIsProcessing()
      Gets the isProcessing attribute of the SyncService object
      Specified by:
      getIsProcessing in class MonitoredTask
      Returns:
      The isProcessing value
    • writeCollectionInfo

      public void writeCollectionInfo(DcsSetInfo setInfo, SyncReport syncReport) throws Exception
      Write collection-level info (metadataProvider and Aggregator) for the specified collection (set) to the NDR.
      Parameters:
      setInfo - Data structure holding collection information
      syncReport - NOT YET DOCUMENTED
      Throws:
      Exception - NOT YET DOCUMENTED
    • sync

      public void sync(String collectionKey) throws Exception
      Initializes data structures needed to sync collection, and then kicks off a new thread to do the actual sync (see runSync).
      Parameters:
      collectionKey - NOT YET DOCUMENTED
      Throws:
      Exception - NOT YET DOCUMENTED
    • runSync

      public void runSync(DcsSetInfo setInfo, SyncReport report) throws Exception
      Sync the collection and item level info for the collection specified by "setInfo". First updates collection-level (metadataProvider, aggregator) information in the NDR and then updates outOfSync metadata with the NDR.
      Parameters:
      setInfo - represents the collection to be synced
      report - reports actions taken by sync process
      Throws:
      Exception - NOT YET DOCUMENTED
    • syncItems

      public void syncItems() throws Exception
      NOT YET DOCUMENTED
      Throws:
      Exception - NOT YET DOCUMENTED
    • getSyncReport

      public SyncReport getSyncReport()
      Gets the syncReport attribute of the SyncService object
      Returns:
      The syncReport value
    • stopProcessing

      public void stopProcessing()
      Halts a threaded service.
    • getSimpleDateStamp

      public static String getSimpleDateStamp()
      Return a string for the current time and date, sutiable for display in log files and output to standout:
      Returns:
      The dateStamp value
    • getDateStamp

      public static 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