Class FileBucketTarCreator
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.tape.inmemoryqueue.QueueProcessor<TarCreatorMessage>
-
- fr.gouv.vitam.storage.offers.tape.cas.FileBucketTarCreator
-
public class FileBucketTarCreator extends QueueProcessor<TarCreatorMessage>
-
-
Constructor Summary
Constructors Constructor Description FileBucketTarCreator(BasicFileStorage basicFileStorage, ObjectReferentialRepository objectReferentialRepository, ArchiveReferentialRepository archiveReferentialRepository, WriteOrderCreator writeOrderCreator, java.lang.String bucketId, java.lang.String fileBucketId, int tarBufferingTimeout, java.util.concurrent.TimeUnit tarBufferingTimeUnit, java.lang.String inputTarStorageFolder, long maxTarEntrySize, long maxTarFileSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToQueue(TarCreatorMessage message)
boolean
containsTar(java.lang.String tarId)
protected void
processMessage(TarCreatorMessage message)
java.util.Optional<java.io.FileInputStream>
tryReadTar(java.lang.String tarId)
-
Methods inherited from class fr.gouv.vitam.storage.offers.tape.inmemoryqueue.QueueProcessor
addFirst, startListener
-
-
-
-
Constructor Detail
-
FileBucketTarCreator
public FileBucketTarCreator(BasicFileStorage basicFileStorage, ObjectReferentialRepository objectReferentialRepository, ArchiveReferentialRepository archiveReferentialRepository, WriteOrderCreator writeOrderCreator, java.lang.String bucketId, java.lang.String fileBucketId, int tarBufferingTimeout, java.util.concurrent.TimeUnit tarBufferingTimeUnit, java.lang.String inputTarStorageFolder, long maxTarEntrySize, long maxTarFileSize)
-
-
Method Detail
-
processMessage
protected void processMessage(TarCreatorMessage message) throws QueueProcessingException
- Specified by:
processMessage
in classQueueProcessor<TarCreatorMessage>
- Throws:
QueueProcessingException
-
containsTar
public boolean containsTar(java.lang.String tarId)
-
tryReadTar
public java.util.Optional<java.io.FileInputStream> tryReadTar(java.lang.String tarId)
-
addToQueue
public void addToQueue(TarCreatorMessage message)
- Overrides:
addToQueue
in classQueueProcessor<TarCreatorMessage>
-
-