Class ArchiveOutputRetentionPolicy
- java.lang.Object
-
- fr.gouv.vitam.storage.offers.tape.cas.ArchiveOutputRetentionPolicy
-
public class ArchiveOutputRetentionPolicy extends java.lang.Object
This cache is used to purge archive files in output folder. FIXME: should purge by remaining disk space < 20% for example Or disk space should be large enough The problem if someone read multiple tar file in same time then the risque of full disk is possible
-
-
Constructor Summary
Constructors Constructor Description ArchiveOutputRetentionPolicy(long cacheTimeoutInMinutes, ReadRequestReferentialCleaner requestReferentialCleaner)
ArchiveOutputRetentionPolicy(long cacheTimeoutInMinutes, java.util.concurrent.TimeUnit timeUnit, int concurrencyLevel, ReadRequestReferentialCleaner requestReferentialCleaner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUp()
java.nio.file.Path
get(java.lang.String archiveId)
long
getCacheTimeoutInMinutes()
void
invalidate(java.lang.String archiveId)
void
put(java.lang.String archiveId, java.nio.file.Path path)
-
-
-
Constructor Detail
-
ArchiveOutputRetentionPolicy
public ArchiveOutputRetentionPolicy(long cacheTimeoutInMinutes, ReadRequestReferentialCleaner requestReferentialCleaner)
-
ArchiveOutputRetentionPolicy
public ArchiveOutputRetentionPolicy(long cacheTimeoutInMinutes, java.util.concurrent.TimeUnit timeUnit, int concurrencyLevel, ReadRequestReferentialCleaner requestReferentialCleaner)
-
-
Method Detail
-
put
public void put(java.lang.String archiveId, java.nio.file.Path path)
-
get
public java.nio.file.Path get(java.lang.String archiveId)
-
invalidate
public void invalidate(java.lang.String archiveId)
-
cleanUp
public void cleanUp()
-
getCacheTimeoutInMinutes
public long getCacheTimeoutInMinutes()
-
-