Package org.duracloud.mill.ltp.dup
Class LoopingDuplicationTaskProducer
- java.lang.Object
-
- org.duracloud.mill.ltp.LoopingTaskProducer<DuplicationMorsel>
-
- org.duracloud.mill.ltp.dup.LoopingDuplicationTaskProducer
-
- All Implemented Interfaces:
Runnable
public class LoopingDuplicationTaskProducer extends LoopingTaskProducer<DuplicationMorsel>
- Author:
- Daniel Bernstein Date: Apr 23, 2014
-
-
Constructor Summary
Constructors Constructor Description LoopingDuplicationTaskProducer(CredentialsRepo credentialsRepo, StorageProviderFactory storageProviderFactory, DuplicationPolicyManager policyManager, org.duracloud.common.queue.TaskQueue taskQueue, net.sf.ehcache.Cache cache, StateManager<DuplicationMorsel> state, int maxTaskQueueSize, Frequency frequency, NotificationManager notificationManager, LoopingTaskProducerConfigurationManager config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Queue<DuplicationMorsel>createQueue()protected RunStatscreateRunStats()protected StringgetLoopingProducerTypePrefix()protected org.duracloud.storage.provider.StorageProvidergetStorageProvider(String account, String storeId)protected voidloadMorselQueueFromSource(Queue<DuplicationMorsel> morselQueue)protected voidlogCumulativeSessionStats(Map<String,RunStats> runstats, RunStats cumulativeTotals)protected voidlogGlobalncrementalStats(RunStats incrementalTotals)protected voidlogIncrementalStatsByAccount(String account, RunStats stats)protected voidnibble(Queue<DuplicationMorsel> queue)-
Methods inherited from class org.duracloud.mill.ltp.LoopingTaskProducer
addToReloadList, calculateStatTotals, getCredentialsRepo, getFrequency, getMaxTaskQueueSize, getStats, getStorageProvider, getTaskQueue, run, sendEmail, sendEmail
-
-
-
-
Constructor Detail
-
LoopingDuplicationTaskProducer
public LoopingDuplicationTaskProducer(CredentialsRepo credentialsRepo, StorageProviderFactory storageProviderFactory, DuplicationPolicyManager policyManager, org.duracloud.common.queue.TaskQueue taskQueue, net.sf.ehcache.Cache cache, StateManager<DuplicationMorsel> state, int maxTaskQueueSize, Frequency frequency, NotificationManager notificationManager, LoopingTaskProducerConfigurationManager config)
-
-
Method Detail
-
loadMorselQueueFromSource
protected void loadMorselQueueFromSource(Queue<DuplicationMorsel> morselQueue)
- Specified by:
loadMorselQueueFromSourcein classLoopingTaskProducer<DuplicationMorsel>
-
nibble
protected void nibble(Queue<DuplicationMorsel> queue)
- Specified by:
nibblein classLoopingTaskProducer<DuplicationMorsel>
-
getStorageProvider
protected org.duracloud.storage.provider.StorageProvider getStorageProvider(String account, String storeId)
- Overrides:
getStorageProviderin classLoopingTaskProducer<DuplicationMorsel>
-
logIncrementalStatsByAccount
protected void logIncrementalStatsByAccount(String account, RunStats stats)
- Specified by:
logIncrementalStatsByAccountin classLoopingTaskProducer<DuplicationMorsel>
-
logCumulativeSessionStats
protected void logCumulativeSessionStats(Map<String,RunStats> runstats, RunStats cumulativeTotals)
- Specified by:
logCumulativeSessionStatsin classLoopingTaskProducer<DuplicationMorsel>
-
logGlobalncrementalStats
protected void logGlobalncrementalStats(RunStats incrementalTotals)
- Specified by:
logGlobalncrementalStatsin classLoopingTaskProducer<DuplicationMorsel>
-
createRunStats
protected RunStats createRunStats()
- Specified by:
createRunStatsin classLoopingTaskProducer<DuplicationMorsel>
-
createQueue
protected Queue<DuplicationMorsel> createQueue()
- Overrides:
createQueuein classLoopingTaskProducer<DuplicationMorsel>
-
getLoopingProducerTypePrefix
protected String getLoopingProducerTypePrefix()
- Specified by:
getLoopingProducerTypePrefixin classLoopingTaskProducer<DuplicationMorsel>
-
-