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
public class LoopingBitIntegrityTaskProducer extends LoopingTaskProducer<BitIntegrityMorsel>
- Author:
- Daniel Bernstein Date: Apr 28, 2014
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RunStatscreateRunStats()protected StringgetLoopingProducerTypePrefix()protected 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 retriesvoidsetWaitTimeInMsBeforeQueueSizeCheck(int ms)-
Methods inherited from class org.duracloud.mill.ltp.LoopingTaskProducer
addToReloadList, calculateStatTotals, createQueue, getCredentialsRepo, getFrequency, getMaxTaskQueueSize, getStats, getStorageProvider, getStorageProvider, getTaskQueue, run, sendEmail, sendEmail
-
-
-
-
Constructor Detail
-
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 Detail
-
loadMorselQueueFromSource
protected void loadMorselQueueFromSource(Queue<BitIntegrityMorsel> morselQueue)
- Specified by:
loadMorselQueueFromSourcein classLoopingTaskProducer<BitIntegrityMorsel>
-
nibble
protected void nibble(Queue<BitIntegrityMorsel> queue)
- Specified by:
nibblein classLoopingTaskProducer<BitIntegrityMorsel>
-
logIncrementalStatsByAccount
protected void logIncrementalStatsByAccount(String account, RunStats stats)
- Specified by:
logIncrementalStatsByAccountin classLoopingTaskProducer<BitIntegrityMorsel>
-
logCumulativeSessionStats
protected void logCumulativeSessionStats(Map<String,RunStats> runstats, RunStats cumulativeTotals)
- Specified by:
logCumulativeSessionStatsin classLoopingTaskProducer<BitIntegrityMorsel>
-
logGlobalncrementalStats
protected void logGlobalncrementalStats(RunStats incrementalTotals)
- Specified by:
logGlobalncrementalStatsin classLoopingTaskProducer<BitIntegrityMorsel>
-
createRunStats
protected RunStats createRunStats()
- Specified by:
createRunStatsin classLoopingTaskProducer<BitIntegrityMorsel>
-
setWaitTimeInMsBeforeQueueSizeCheck
public void setWaitTimeInMsBeforeQueueSizeCheck(int ms)
-
getLoopingProducerTypePrefix
protected String getLoopingProducerTypePrefix()
- Specified by:
getLoopingProducerTypePrefixin classLoopingTaskProducer<BitIntegrityMorsel>
-
setWaitBetweenRetriesMs
public void setWaitBetweenRetriesMs(int waitBetweenRetriesMs)
Modify the wait between retries- Parameters:
waitBetweenRetriesMs-
-
-