public class ArchiveReferentialRepository extends Object
Constructor and Description |
---|
ArchiveReferentialRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection) |
Modifier and Type | Method and Description |
---|---|
Optional<TapeArchiveReferentialEntity> |
find(String archiveId) |
void |
insert(TapeArchiveReferentialEntity tapeArchiveReferentialEntity) |
void |
updateLocationToOnTape(String archiveId,
TapeLibraryOnTapeArchiveStorageLocation onTapeTarStorageLocation) |
void |
updateLocationToReadyOnDisk(String archiveId,
long size,
String digest) |
public ArchiveReferentialRepository(com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void insert(TapeArchiveReferentialEntity tapeArchiveReferentialEntity) throws ArchiveReferentialException
ArchiveReferentialException
public Optional<TapeArchiveReferentialEntity> find(String archiveId) throws ArchiveReferentialException
ArchiveReferentialException
public void updateLocationToReadyOnDisk(String archiveId, long size, String digest) throws ArchiveReferentialException
ArchiveReferentialException
public void updateLocationToOnTape(String archiveId, TapeLibraryOnTapeArchiveStorageLocation onTapeTarStorageLocation) throws ArchiveReferentialException
ArchiveReferentialException
Copyright © 2019 Vitam. All rights reserved.