DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.ndr
Class SyncService

java.lang.Object
  extended by org.dlese.dpc.schemedit.threadedservices.MonitoredTask
      extended by org.dlese.dpc.schemedit.ndr.SyncService

public class SyncService
extends MonitoredTask

Threaded version of NDRSync

Author:
ostwald


Field Summary
protected static boolean debug
          NOT YET DOCUMENTED
protected  boolean isProcessing
          NOT YET DOCUMENTED
protected  boolean stopProcessing
          NOT YET DOCUMENTED
 
Constructor Summary
SyncService(SessionBean sessionBean, ServletContext servletContext)
          Constructor for the SyncService object
 
Method Summary
static String getDateStamp()
          Return a string for the current time and date, sutiable for display in log files and output to standout:
 boolean getIsProcessing()
          Gets the isProcessing attribute of the SyncService object
static String getSimpleDateStamp()
          Return a string for the current time and date, sutiable for display in log files and output to standout:
 SyncReport getSyncReport()
          Gets the syncReport attribute of the SyncService object
 void runSync(DcsSetInfo setInfo, SyncReport report)
          Sync the collection and item level info for the collection specified by "setInfo".
 void stopProcessing()
          Halts a threaded service.
 void sync(String collectionKey)
          Initializes data structures needed to sync collection, and then kicks off a new thread to do the actual sync (see runSync).
 void syncItems()
          NOT YET DOCUMENTED
 void writeCollectionInfo(DcsSetInfo setInfo, SyncReport syncReport)
          Write collection-level info (metadataProvider and Aggregator) for the specified collection (set) to the NDR.
 
Methods inherited from class org.dlese.dpc.schemedit.threadedservices.MonitoredTask
getTaskProgress, setTaskProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

protected static boolean debug
NOT YET DOCUMENTED


isProcessing

protected boolean isProcessing
NOT YET DOCUMENTED


stopProcessing

protected boolean stopProcessing
NOT YET DOCUMENTED

Constructor Detail

SyncService

public SyncService(SessionBean sessionBean,
                   ServletContext servletContext)
            throws Exception
Constructor for the SyncService object

Parameters:
servletContext - NOT YET DOCUMENTED
sessionBean - NOT YET DOCUMENTED
Throws:
Exception - NOT YET DOCUMENTED
Method Detail

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

DLESE Tools
v1.6.0