Package org.duracloud.mill.ltp.bit
Class LoopingBitIntegrityTaskProducer
java.lang.Object
org.duracloud.mill.ltp.LoopingTaskProducer<BitIntegrityMorsel>
org.duracloud.mill.ltp.bit.LoopingBitIntegrityTaskProducer
- All Implemented Interfaces:
Runnable
- Author:
- Daniel Bernstein Date: Apr 28, 2014
-
Constructor Summary
ConstructorsConstructorDescriptionLoopingBitIntegrityTaskProducer(CredentialsRepo credentialsRepo, org.duracloud.mill.db.repo.JpaBitIntegrityReportRepo bitReportRepo, StorageProviderFactory storageProviderFactory, org.duracloud.common.queue.TaskQueue bitTaskQueue, org.duracloud.common.queue.TaskQueue bitReportTaskQueue, StateManager<BitIntegrityMorsel> state, int maxTaskQueueSize, Frequency frequency, NotificationManager notificationManager, PathFilterManager exclusionManager, LoopingBitTaskProducerConfigurationManager config) -
Method Summary
Modifier and TypeMethodDescriptionprotected RunStatsprotected Stringprotected voidloadMorselQueueFromSource(Queue<BitIntegrityMorsel> morselQueue) protected voidlogCumulativeSessionStats(Map<String, RunStats> runstats, RunStats cumulativeTotals) protected voidlogGlobalncrementalStats(RunStats incrementalTotals) protected voidlogIncrementalStatsByAccount(String account, RunStats stats) protected voidnibble(Queue<BitIntegrityMorsel> queue) voidsetWaitBetweenRetriesMs(int waitBetweenRetriesMs) Modify the wait between retriesvoidMethods inherited from class org.duracloud.mill.ltp.LoopingTaskProducer
addToReloadList, calculateStatTotals, createQueue, getCredentialsRepo, getFrequency, getMaxTaskQueueSize, getStats, getStorageProvider, getStorageProvider, getTaskQueue, run, sendEmail, sendEmail
-
Constructor Details
-
LoopingBitIntegrityTaskProducer
public LoopingBitIntegrityTaskProducer(CredentialsRepo credentialsRepo, org.duracloud.mill.db.repo.JpaBitIntegrityReportRepo bitReportRepo, StorageProviderFactory storageProviderFactory, org.duracloud.common.queue.TaskQueue bitTaskQueue, org.duracloud.common.queue.TaskQueue bitReportTaskQueue, StateManager<BitIntegrityMorsel> state, int maxTaskQueueSize, Frequency frequency, NotificationManager notificationManager, PathFilterManager exclusionManager, LoopingBitTaskProducerConfigurationManager config)
-
-
Method Details
-
loadMorselQueueFromSource
- Specified by:
loadMorselQueueFromSourcein classLoopingTaskProducer<BitIntegrityMorsel>
-
nibble
- Specified by:
nibblein classLoopingTaskProducer<BitIntegrityMorsel>
-
logIncrementalStatsByAccount
- Specified by:
logIncrementalStatsByAccountin classLoopingTaskProducer<BitIntegrityMorsel>
-
logCumulativeSessionStats
- Specified by:
logCumulativeSessionStatsin classLoopingTaskProducer<BitIntegrityMorsel>
-
logGlobalncrementalStats
- Specified by:
logGlobalncrementalStatsin classLoopingTaskProducer<BitIntegrityMorsel>
-
createRunStats
- Specified by:
createRunStatsin classLoopingTaskProducer<BitIntegrityMorsel>
-
setWaitTimeInMsBeforeQueueSizeCheck
public void setWaitTimeInMsBeforeQueueSizeCheck(int ms) -
getLoopingProducerTypePrefix
- Specified by:
getLoopingProducerTypePrefixin classLoopingTaskProducer<BitIntegrityMorsel>
-
setWaitBetweenRetriesMs
public void setWaitBetweenRetriesMs(int waitBetweenRetriesMs) Modify the wait between retries- Parameters:
waitBetweenRetriesMs-
-