Class MemoryBlobStore
java.lang.Object
org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
org.apache.jackrabbit.oak.spi.blob.MemoryBlobStore
- All Implemented Interfaces:
AutoCloseable,Cache.Backend<AbstractBlobStore.BlockId,,AbstractBlobStore.Data> BlobStore,GarbageCollectableBlobStore
A memory blob store. Useful for testing.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
AbstractBlobStore.BlockId, AbstractBlobStore.Data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear the cache.longcountDeleteChunks(List<String> chunkIds, long maxLastModifiedTime) Ignores the maxlastModifiedTimegetAllChunkIds(long maxLastModifiedTime) Ignores the maxlastModifiedTimevoidStart the mark phase.intsweep()Remove all unused blocks.Methods inherited from class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore
clearInUse, close, deleteChunks, getBlobId, getBlobLength, getBlockSize, getBlockSizeMin, getInputStream, getReference, load, readBlob, resolveChunks, setBlockSize, setBlockSizeMin, setReferenceKey, setReferenceKeyEncoded, setReferenceKeyPlainText, setStatsCollector, writeBlob, writeBlob, writeBlob
-
Constructor Details
-
MemoryBlobStore
public MemoryBlobStore()
-
-
Method Details
-
startMark
Description copied from interface:GarbageCollectableBlobStoreStart the mark phase.- Specified by:
startMarkin interfaceGarbageCollectableBlobStore- Specified by:
startMarkin classAbstractBlobStore- Throws:
IOException
-
sweep
public int sweep()Description copied from interface:GarbageCollectableBlobStoreRemove all unused blocks.- Specified by:
sweepin interfaceGarbageCollectableBlobStore- Specified by:
sweepin classAbstractBlobStore- Returns:
- the number of removed blocks
-
countDeleteChunks
Ignores the maxlastModifiedTime- Parameters:
chunkIds- the chunk idsmaxLastModifiedTime- the max last modified time to consider for retrieval, with the special value '0' meaning no filtering by time- Returns:
- long the count of successful deletions
- Throws:
Exception- the exception
-
getAllChunkIds
Ignores the maxlastModifiedTime- Parameters:
maxLastModifiedTime- the max last modified time to consider for retrieval, with the special value '0' meaning no filtering by time- Returns:
- the identifiers
- Throws:
Exception- the exception
-
clearCache
public void clearCache()Description copied from interface:GarbageCollectableBlobStoreClear the cache.
-