Package org.dlese.dpc.schemedit.ndr
Class SyncService
java.lang.Object
org.dlese.dpc.schemedit.threadedservices.MonitoredTask
org.dlese.dpc.schemedit.ndr.SyncService
Threaded version of NDRSync
- Author:
- ostwald
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static booleanNOT YET DOCUMENTEDprotected booleanNOT YET DOCUMENTEDprotected booleanNOT YET DOCUMENTED -
Constructor Summary
ConstructorsConstructorDescriptionSyncService(SessionBean sessionBean, ServletContext servletContext) Constructor for the SyncService object -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturn a string for the current time and date, sutiable for display in log files and output to standout:booleanGets the isProcessing attribute of the SyncService objectstatic StringReturn a string for the current time and date, sutiable for display in log files and output to standout:Gets the syncReport attribute of the SyncService objectvoidrunSync(DcsSetInfo setInfo, SyncReport report) Sync the collection and item level info for the collection specified by "setInfo".voidHalts a threaded service.voidInitializes data structures needed to sync collection, and then kicks off a new thread to do the actual sync (see runSync).voidNOT YET DOCUMENTEDvoidwriteCollectionInfo(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
-
Field Details
-
debug
protected static boolean debugNOT YET DOCUMENTED -
isProcessing
protected boolean isProcessingNOT YET DOCUMENTED -
stopProcessing
protected boolean stopProcessingNOT YET DOCUMENTED
-
-
Constructor Details
-
SyncService
Constructor for the SyncService object- Parameters:
sessionBean- NOT YET DOCUMENTEDservletContext- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
-
Method Details
-
getIsProcessing
public boolean getIsProcessing()Gets the isProcessing attribute of the SyncService object- Specified by:
getIsProcessingin classMonitoredTask- Returns:
- The isProcessing value
-
writeCollectionInfo
Write collection-level info (metadataProvider and Aggregator) for the specified collection (set) to the NDR.- Parameters:
setInfo- Data structure holding collection informationsyncReport- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
sync
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
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 syncedreport- reports actions taken by sync process- Throws:
Exception- NOT YET DOCUMENTED
-
syncItems
NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
getSyncReport
Gets the syncReport attribute of the SyncService object- Returns:
- The syncReport value
-
stopProcessing
public void stopProcessing()Halts a threaded service. -
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
Return a string for the current time and date, sutiable for display in log files and output to standout:- Returns:
- The dateStamp value
-