Class ArchiveCacheEvictionController
java.lang.Object
fr.gouv.vitam.storage.offers.tape.cas.ArchiveCacheEvictionController
-
Constructor Summary
ConstructorDescriptionArchiveCacheEvictionController
(AccessRequestReferentialRepository accessRequestReferentialRepository, ObjectReferentialRepository objectReferentialRepository, BucketTopologyHelper bucketTopologyHelper) -
Method Summary
Modifier and TypeMethodDescriptionComputes an eviction judge that prevents eviction of in-use archives (required by active access requests) or eviction of archives that are non-expirable (to be kept forever in cache).createLock
(Set<ArchiveCacheEntry> archiveCacheEntries)
-
Constructor Details
-
ArchiveCacheEvictionController
public ArchiveCacheEvictionController(AccessRequestReferentialRepository accessRequestReferentialRepository, ObjectReferentialRepository objectReferentialRepository, BucketTopologyHelper bucketTopologyHelper)
-
-
Method Details
-
computeEvictionJudge
Computes an eviction judge that prevents eviction of in-use archives (required by active access requests) or eviction of archives that are non-expirable (to be kept forever in cache).- Returns:
- An eviction judge that decides if an archive "file-bucket-id/tarId" can be evicted from cache or not.
-
createLock
-