Package org.nuxeo.ecm.blob.s3
Class S3BlobStore.S3BlobGarbageCollector
java.lang.Object
org.nuxeo.ecm.core.blob.AbstractBlobGarbageCollector
org.nuxeo.ecm.blob.s3.S3BlobStore.S3BlobGarbageCollector
- All Implemented Interfaces:
BinaryGarbageCollector
- Enclosing class:
- S3BlobStore
Garbage collector for S3 binaries that stores the marked (in use) binaries in memory.
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.blob.AbstractBlobGarbageCollector
marked, startTime, status, toDelete
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Computes keys candidate for deletion.getId()
Gets a unique identifier for this garbage collector.void
Marks a binary as being in use.void
removeUnmarkedBlobsAndUpdateStatus
(boolean delete) Methods inherited from class org.nuxeo.ecm.core.blob.AbstractBlobGarbageCollector
getStatus, getUnmarkedBlobsAndUpdateStatus, isInProgress, removeBlobs, start, stop
-
Field Details
-
WARN_OBJECTS_THRESHOLD
protected static final int WARN_OBJECTS_THRESHOLD- See Also:
-
-
Constructor Details
-
S3BlobGarbageCollector
public S3BlobGarbageCollector()
-
-
Method Details
-
getId
Description copied from interface:BinaryGarbageCollector
Gets a unique identifier for this garbage collector. Two garbage collectors that would impact the same files must have the same identifier.- Returns:
- a unique identifier
-
computeToDelete
public void computeToDelete()Description copied from class:AbstractBlobGarbageCollector
Computes keys candidate for deletion.Overrides should not call super (this allows detecting old implementations).
- Overrides:
computeToDelete
in classAbstractBlobGarbageCollector
-
mark
Description copied from interface:BinaryGarbageCollector
Marks a binary as being in use.- Specified by:
mark
in interfaceBinaryGarbageCollector
- Overrides:
mark
in classAbstractBlobGarbageCollector
- Parameters:
key
- the binary's digest- Since:
- 2021.13
-
removeUnmarkedBlobsAndUpdateStatus
public void removeUnmarkedBlobsAndUpdateStatus(boolean delete) - Overrides:
removeUnmarkedBlobsAndUpdateStatus
in classAbstractBlobGarbageCollector
-