Package org.nuxeo.ecm.blob.azure
Class AzureGarbageCollector
- java.lang.Object
-
- org.nuxeo.ecm.blob.AbstractBinaryGarbageCollector<AzureBinaryManager>
-
- org.nuxeo.ecm.blob.azure.AzureGarbageCollector
-
- All Implemented Interfaces:
BinaryGarbageCollector
public class AzureGarbageCollector extends AbstractBinaryGarbageCollector<AzureBinaryManager>
- Since:
- 7.10
- Author:
- Arnaud Kervern
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.blob.AbstractBinaryGarbageCollector
binaryManager, marked, startTime, status, toDelete
-
-
Constructor Summary
Constructors Constructor Description AzureGarbageCollector(AzureBinaryManager binaryManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomputeToDelete()Computes keys candidate for deletion.StringgetId()Gets a unique identifier for this garbage collector.static booleanisMD5(String digest)protected voidremoveUnmarkedBlobsAndUpdateStatus(boolean delete)-
Methods inherited from class org.nuxeo.ecm.blob.AbstractBinaryGarbageCollector
getStatus, getUnmarkedBlobs, isInProgress, mark, start, stop
-
-
-
-
Constructor Detail
-
AzureGarbageCollector
public AzureGarbageCollector(AzureBinaryManager binaryManager)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:BinaryGarbageCollectorGets 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:AbstractBinaryGarbageCollectorComputes keys candidate for deletion.Overrides should not call super (this allows detecting old implementations).
- Overrides:
computeToDeletein classAbstractBinaryGarbageCollector<AzureBinaryManager>- Since:
- 11.5
-
removeUnmarkedBlobsAndUpdateStatus
protected void removeUnmarkedBlobsAndUpdateStatus(boolean delete)
- Overrides:
removeUnmarkedBlobsAndUpdateStatusin classAbstractBinaryGarbageCollector<AzureBinaryManager>- Since:
- 11.5
-
isMD5
public static boolean isMD5(String digest)
-
-