Class ArchiveReferentialRepository
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.tape.cas.ArchiveReferentialRepository
-
public class ArchiveReferentialRepository extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ArchiveReferentialRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<TapeArchiveReferentialEntity>
find(java.lang.String archiveId)
void
insert(TapeArchiveReferentialEntity tapeArchiveReferentialEntity)
void
updateLocationToOnTape(java.lang.String archiveId, TapeLibraryOnTapeArchiveStorageLocation onTapeTarStorageLocation)
void
updateLocationToReadyOnDisk(java.lang.String archiveId, long size, java.lang.String digest)
-
-
-
Method Detail
-
insert
public void insert(TapeArchiveReferentialEntity tapeArchiveReferentialEntity) throws ArchiveReferentialException
- Throws:
ArchiveReferentialException
-
find
public java.util.Optional<TapeArchiveReferentialEntity> find(java.lang.String archiveId) throws ArchiveReferentialException
- Throws:
ArchiveReferentialException
-
updateLocationToReadyOnDisk
public void updateLocationToReadyOnDisk(java.lang.String archiveId, long size, java.lang.String digest) throws ArchiveReferentialException
- Throws:
ArchiveReferentialException
-
updateLocationToOnTape
public void updateLocationToOnTape(java.lang.String archiveId, TapeLibraryOnTapeArchiveStorageLocation onTapeTarStorageLocation) throws ArchiveReferentialException
- Throws:
ArchiveReferentialException
-
-