public class SyncService extends MonitoredTask
Modifier and Type | Field and Description |
---|---|
protected static boolean |
debug
NOT YET DOCUMENTED
|
protected boolean |
isProcessing
NOT YET DOCUMENTED
|
protected boolean |
stopProcessing
NOT YET DOCUMENTED
|
Constructor and Description |
---|
SyncService(SessionBean sessionBean,
javax.servlet.ServletContext servletContext)
Constructor for the SyncService object
|
Modifier and Type | Method and Description |
---|---|
static java.lang.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 java.lang.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(java.lang.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.
|
getTaskProgress, setTaskProgress
protected static boolean debug
protected boolean isProcessing
protected boolean stopProcessing
public SyncService(SessionBean sessionBean, javax.servlet.ServletContext servletContext) throws java.lang.Exception
servletContext
- NOT YET DOCUMENTEDsessionBean
- NOT YET DOCUMENTEDjava.lang.Exception
- NOT YET DOCUMENTEDpublic boolean getIsProcessing()
getIsProcessing
in class MonitoredTask
public void writeCollectionInfo(DcsSetInfo setInfo, SyncReport syncReport) throws java.lang.Exception
setInfo
- Data structure holding collection informationsyncReport
- NOT YET DOCUMENTEDjava.lang.Exception
- NOT YET DOCUMENTEDpublic void sync(java.lang.String collectionKey) throws java.lang.Exception
collectionKey
- NOT YET DOCUMENTEDjava.lang.Exception
- NOT YET DOCUMENTEDpublic void runSync(DcsSetInfo setInfo, SyncReport report) throws java.lang.Exception
setInfo
- represents the collection to be syncedreport
- reports actions taken by sync processjava.lang.Exception
- NOT YET DOCUMENTEDpublic void syncItems() throws java.lang.Exception
java.lang.Exception
- NOT YET DOCUMENTEDpublic SyncReport getSyncReport()
public void stopProcessing()
public static java.lang.String getSimpleDateStamp()
public static java.lang.String getDateStamp()