Interface BlobGarbageCollector
- All Known Implementing Classes:
MarkSweepGarbageCollector
public interface BlobGarbageCollector
Interface for blob garbage collector
-
Method Summary
Modifier and TypeMethodDescriptionlongChecks for consistency in the blob store and reporting the number of missing blobs.longcheckConsistency(boolean markOnly) Collects the blob references and consolidates references from other repositories if available in the DataStore.voidcollectGarbage(boolean markOnly) Marks garbage blobs from the passed node store instance.voidcollectGarbage(boolean markOnly, boolean forceBlobRetrieve) Marks garbage blobs from the passed node store instance.Returns consistency operation statisticsReturns operation statisticsgetStats()Retuns the list of stats
-
Method Details
-
collectGarbage
Marks garbage blobs from the passed node store instance. Collects them only if markOnly is false.- Parameters:
markOnly- whether to only mark references and not sweep in the mark and sweep operation.- Throws:
Exception- the exception
-
collectGarbage
Marks garbage blobs from the passed node store instance. Collects them only if markOnly is false. Also forces retrieval of blob ids from the blob store rather than using any local tracking.- Parameters:
markOnly- whether to only mark references and not sweep in the mark and sweep operation.forceBlobRetrieve- whether to force retrieve of blob ids from datastore- Throws:
Exception
-
getStats
Retuns the list of stats- Returns:
- stats
- Throws:
Exception
-
checkConsistency
Checks for consistency in the blob store and reporting the number of missing blobs.- Returns:
- number of inconsistencies
- Throws:
Exception
-
checkConsistency
Collects the blob references and consolidates references from other repositories if available in the DataStore. Adds relevant metrics.- Returns:
- Throws:
Exception
-
getOperationStats
Returns operation statistics- Returns:
- stats object
- Throws:
Exception
-
getConsistencyOperationStats
OperationsStatsMBean getConsistencyOperationStats()Returns consistency operation statistics- Returns:
- stats object
-