|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.schemedit.threadedservices.MonitoredTask org.dlese.dpc.schemedit.ndr.SyncService
public class SyncService
Threaded version of NDRSync
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 |
---|
protected static boolean debug
protected boolean isProcessing
protected boolean stopProcessing
Constructor Detail |
---|
public SyncService(SessionBean sessionBean, ServletContext servletContext) throws Exception
servletContext
- NOT YET DOCUMENTEDsessionBean
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTEDMethod Detail |
---|
public boolean getIsProcessing()
getIsProcessing
in class MonitoredTask
public void writeCollectionInfo(DcsSetInfo setInfo, SyncReport syncReport) throws Exception
setInfo
- Data structure holding collection informationsyncReport
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTEDpublic void sync(String collectionKey) throws Exception
collectionKey
- NOT YET DOCUMENTED
Exception
- NOT YET DOCUMENTEDpublic void runSync(DcsSetInfo setInfo, SyncReport report) throws Exception
setInfo
- represents the collection to be syncedreport
- reports actions taken by sync process
Exception
- NOT YET DOCUMENTEDpublic void syncItems() throws Exception
Exception
- NOT YET DOCUMENTEDpublic SyncReport getSyncReport()
public void stopProcessing()
public static String getSimpleDateStamp()
public static String getDateStamp()
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |