Package org.nuxeo.ecm.blob
Class AbstractBinaryGarbageCollector<T extends CachingBinaryManager>
java.lang.Object
org.nuxeo.ecm.blob.AbstractBinaryGarbageCollector<T>
- All Implemented Interfaces:
BinaryGarbageCollector
- Direct Known Subclasses:
AzureGarbageCollector,GoogleStorageBinaryManager.GoogleStorageBinaryGarbageCollector,S3BinaryManager.S3BinaryGarbageCollector
@Deprecated(since="2023.9")
public abstract class AbstractBinaryGarbageCollector<T extends CachingBinaryManager>
extends Object
implements BinaryGarbageCollector
Deprecated.
- Since:
- 7.10
- Author:
- Arnaud Kervern
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBinaryGarbageCollector(T binaryManager) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Computes keys candidate for deletion.Deprecated.Gets the status of the binaries to GC and of those that won't be.Deprecated.booleanDeprecated.Checks if a GC is in progress.voidDeprecated.Marks a binary as being in use.protected voidremoveUnmarkedBlobsAndUpdateStatus(boolean delete) Deprecated.voidstart()Deprecated.Starts the garbage collection process.voidstop(boolean delete) Deprecated.Stops the garbage collection process and deletes all binaries that have not been marked (sweep).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.core.blob.binary.BinaryGarbageCollector
getId
-
Field Details
-
binaryManager
Deprecated. -
status
Deprecated. -
startTime
protected volatile long startTimeDeprecated. -
marked
Deprecated. -
toDelete
Deprecated.
-
-
Constructor Details
-
AbstractBinaryGarbageCollector
Deprecated.
-
-
Method Details
-
start
public void start()Deprecated.Description copied from interface:BinaryGarbageCollectorStarts the garbage collection process.After this, all active binaries must be fed to the
BinaryGarbageCollector.mark(java.lang.String)method.- Specified by:
startin interfaceBinaryGarbageCollector
-
computeToDelete
public void computeToDelete()Deprecated.Computes keys candidate for deletion.Overrides should not call super (this allows detecting old implementations).
- Since:
- 11.5
-
stop
public void stop(boolean delete) Deprecated.Description copied from interface:BinaryGarbageCollectorStops the garbage collection process and deletes all binaries that have not been marked (sweep).- Specified by:
stopin interfaceBinaryGarbageCollector- Parameters:
delete-trueif actual deletion must be performed,falseif the binaries to delete should simply be counted in the status
-
removeUnmarkedBlobsAndUpdateStatus
protected void removeUnmarkedBlobsAndUpdateStatus(boolean delete) Deprecated. -
getUnmarkedBlobs
Deprecated. -
mark
Deprecated.Description copied from interface:BinaryGarbageCollectorMarks a binary as being in use.- Specified by:
markin interfaceBinaryGarbageCollector- Parameters:
digest- the binary's digest
-
getStatus
Deprecated.Description copied from interface:BinaryGarbageCollectorGets the status of the binaries to GC and of those that won't be.Available after
BinaryGarbageCollector.stop(boolean).- Specified by:
getStatusin interfaceBinaryGarbageCollector- Returns:
- the status
-
isInProgress
public boolean isInProgress()Deprecated.Description copied from interface:BinaryGarbageCollectorChecks if a GC is in progress.A GC is in progress is
#starthas been called but not#stop.It's only useful to call this from a separate thread from the one that calls
BinaryGarbageCollector.mark(java.lang.String).- Specified by:
isInProgressin interfaceBinaryGarbageCollector- Returns:
trueif a GC is in progress
-
AbstractBlobGarbageCollectorinstead