Interface BlobGarbageCollector

  • All Known Implementing Classes:
    MarkSweepGarbageCollector

    public interface BlobGarbageCollector
    Interface for blob garbage collector
    • Method Detail

      • collectGarbage

        void collectGarbage​(boolean markOnly)
                     throws Exception
        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

        void collectGarbage​(boolean markOnly,
                            boolean forceBlobRetrieve)
                     throws Exception
        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
      • checkConsistency

        long checkConsistency()
                       throws Exception
        Checks for consistency in the blob store and reporting the number of missing blobs.
        Returns:
        number of inconsistencies
        Throws:
        Exception
      • checkConsistency

        long checkConsistency​(boolean markOnly)
                       throws Exception
        Collects the blob references and consolidates references from other repositories if available in the DataStore. Adds relevant metrics.
        Returns:
        Throws:
        Exception
      • getConsistencyOperationStats

        OperationsStatsMBean getConsistencyOperationStats()
        Returns consistency operation statistics
        Returns:
        stats object