Package org.nuxeo.ecm.core.storage.sql
Class S3BinaryManager.S3BinaryGarbageCollector
- java.lang.Object
-
- org.nuxeo.ecm.blob.AbstractBinaryGarbageCollector<S3BinaryManager>
-
- org.nuxeo.ecm.core.storage.sql.S3BinaryManager.S3BinaryGarbageCollector
-
- All Implemented Interfaces:
BinaryGarbageCollector
- Enclosing class:
- S3BinaryManager
public static class S3BinaryManager.S3BinaryGarbageCollector extends AbstractBinaryGarbageCollector<S3BinaryManager>
Garbage collector for S3 binaries that stores the marked (in use) binaries in memory.
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.blob.AbstractBinaryGarbageCollector
binaryManager, marked, startTime, status, toDelete
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
S3BinaryGarbageCollector(S3BinaryManager binaryManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
computeToDelete()
Computes keys candidate for deletion.String
getId()
Gets a unique identifier for this garbage collector.protected void
removeUnmarkedBlobsAndUpdateStatus(boolean delete)
-
Methods inherited from class org.nuxeo.ecm.blob.AbstractBinaryGarbageCollector
getStatus, getUnmarkedBlobs, isInProgress, mark, start, stop
-
-
-
-
Constructor Detail
-
S3BinaryGarbageCollector
protected S3BinaryGarbageCollector(S3BinaryManager binaryManager)
-
-
Method Detail
-
getId
public String 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:AbstractBinaryGarbageCollector
Computes keys candidate for deletion.Overrides should not call super (this allows detecting old implementations).
- Overrides:
computeToDelete
in classAbstractBinaryGarbageCollector<S3BinaryManager>
-
removeUnmarkedBlobsAndUpdateStatus
protected void removeUnmarkedBlobsAndUpdateStatus(boolean delete)
- Overrides:
removeUnmarkedBlobsAndUpdateStatus
in classAbstractBinaryGarbageCollector<S3BinaryManager>
-
-