Class ArchiveReferentialRepository
java.lang.Object
fr.gouv.vitam.storage.offers.tape.cas.ArchiveReferentialRepository
-
Constructor Summary
ConstructorDescriptionArchiveReferentialRepository
(com.mongodb.client.MongoCollection<org.bson.Document> collection) -
Method Summary
Modifier and TypeMethodDescriptionvoid
insert
(TapeArchiveReferentialEntity tapeArchiveReferentialEntity) void
updateLocationToOnTape
(String archiveId, TapeLibraryOnTapeArchiveStorageLocation onTapeTarStorageLocation) void
updateLocationToReadyOnDisk
(String archiveId, long size, String digest)
-
Constructor Details
-
ArchiveReferentialRepository
public ArchiveReferentialRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection)
-
-
Method Details
-
insert
public void insert(TapeArchiveReferentialEntity tapeArchiveReferentialEntity) throws ArchiveReferentialException - Throws:
ArchiveReferentialException
-
find
public Optional<TapeArchiveReferentialEntity> find(String archiveId) throws ArchiveReferentialException - Throws:
ArchiveReferentialException
-
bulkFind
public List<TapeArchiveReferentialEntity> bulkFind(Set<String> archiveIds) throws ArchiveReferentialException - Throws:
ArchiveReferentialException
-
updateLocationToReadyOnDisk
public void updateLocationToReadyOnDisk(String archiveId, long size, String digest) throws ArchiveReferentialException - Throws:
ArchiveReferentialException
-
updateLocationToOnTape
public void updateLocationToOnTape(String archiveId, TapeLibraryOnTapeArchiveStorageLocation onTapeTarStorageLocation) throws ArchiveReferentialException - Throws:
ArchiveReferentialException
-