@ThreadSafe public class LongRunningJobResultManager extends AbstractSimpleDAO
IDAO.EModeDEFAULT_AUTO_SAVE_ENABLED, m_aRWLock| Constructor and Description |
|---|
LongRunningJobResultManager(String sFilename) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(LongRunningJobData aJobData) |
protected com.helger.commons.microdom.IMicroDocument |
createWriteData()
Create the XML document that should be saved to the file.
|
List<LongRunningJobData> |
getAllJobResults() |
LongRunningJobData |
getJobResultOfID(String sJobResultID) |
protected com.helger.commons.state.EChange |
onRead(com.helger.commons.microdom.IMicroDocument aDoc)
Fill the internal structures with from the passed XML document.
|
beforeWriteToFile, getDAOIO, getFilenameProvider, getInitCount, getLastFilename, getLastInitDateTime, getLastReadDateTime, getLastWriteDateTime, getReadCount, getSafeFile, getWriteCount, getXMLWriterSettings, initialRead, markAsChanged, modifyWriteData, onFilenameChange, onInit, toString, triggerExceptionHandlersRead, triggerExceptionHandlersWrite, writeToFileOnPendingChangesbeginWithoutAutoSave, endWithoutAutoSave, getExceptionHandlersRead, getExceptionHandlersWrite, hasPendingChanges, internalHasPendingChanges, internalIsAutoSaveEnabled, internalSetPendingChanges, isAutoSaveEnabled, performWithoutAutoSave, performWithoutAutoSave, performWithoutAutoSave, performWithoutAutoSavepublic LongRunningJobResultManager(@Nonnull@Nonempty String sFilename) throws DAOException
DAOException@Nonnull protected com.helger.commons.state.EChange onRead(@Nonnull com.helger.commons.microdom.IMicroDocument aDoc)
AbstractSimpleDAOonRead in class AbstractSimpleDAOaDoc - The XML document to read from. Never null.EChange.CHANGED if reading the data changed something in
the internal structures that requires a writing.@Nonnull protected com.helger.commons.microdom.IMicroDocument createWriteData()
AbstractSimpleDAOcreateWriteData in class AbstractSimpleDAOnull document to write to the file.public void addResult(@Nonnull LongRunningJobData aJobData)
@Nonnull @ReturnsMutableCopy public List<LongRunningJobData> getAllJobResults()
@Nullable public LongRunningJobData getJobResultOfID(@Nullable String sJobResultID)
Copyright © 2014–2015 Philip Helger. All rights reserved.