public class RDBBlobStore extends org.apache.jackrabbit.oak.plugins.blob.CachingBlobStore implements Closeable
org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.BlockId, org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.Data| Modifier and Type | Field and Description |
|---|---|
protected RDBConnectionHandler |
ch |
protected static int |
IDSIZE |
protected String |
tnData |
protected String |
tnMeta |
blobCacheSize, cache, DEFAULT_CACHE_SIZE, MEM_CACHE_NAMEBLOCK_SIZE_LIMIT, HASH_ALGORITHM, inUse, TYPE_DATA, TYPE_HASH| Constructor and Description |
|---|
RDBBlobStore(DataSource ds)
|
RDBBlobStore(DataSource ds,
RDBOptions options)
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
countDeleteChunks(List<String> chunkIds,
long maxLastModifiedTime) |
protected void |
finalize() |
Iterator<String> |
getAllChunkIds(long maxLastModifiedTime) |
protected boolean |
isMarkEnabled() |
protected void |
mark(org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.BlockId blockId) |
protected byte[] |
readBlockFromBackend(org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.BlockId blockId) |
protected byte[] |
readBlockFromBackend(byte[] digest) |
void |
startMark() |
protected void |
storeBlock(byte[] digest,
int level,
byte[] data) |
int |
sweep() |
clearCache, getBlobCacheSize, getCacheStatsclearInUse, deleteChunks, getBlobId, getBlobLength, getBlockSize, getBlockSizeMin, getInputStream, getOrCreateReferenceKey, getReference, getStatsCollector, load, mark, markInUse, readBlob, resolveChunks, setBlockSize, setBlockSizeMin, setReferenceKey, setReferenceKeyEncoded, setReferenceKeyPlainText, setStatsCollector, usesBlobId, writeBlob, writeBlob, writeBlobprotected static final int IDSIZE
protected RDBConnectionHandler ch
protected String tnData
protected String tnMeta
public RDBBlobStore(DataSource ds, RDBOptions options)
public RDBBlobStore(DataSource ds)
public void close()
close in interface Closeableclose in interface AutoCloseableprotected void finalize()
throws Throwable
protected void storeBlock(byte[] digest,
int level,
byte[] data)
throws IOException
storeBlock in class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStoreIOExceptionprotected byte[] readBlockFromBackend(byte[] digest)
throws Exception
Exceptionprotected byte[] readBlockFromBackend(org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.BlockId blockId) throws Exception
readBlockFromBackend in class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStoreExceptionpublic void startMark()
throws IOException
startMark in interface org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStorestartMark in class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStoreIOExceptionprotected boolean isMarkEnabled()
isMarkEnabled in class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStoreprotected void mark(org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore.BlockId blockId) throws Exception
mark in class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStoreExceptionpublic int sweep()
throws IOException
sweep in interface org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStoresweep in class org.apache.jackrabbit.oak.spi.blob.AbstractBlobStoreIOExceptionpublic long countDeleteChunks(List<String> chunkIds, long maxLastModifiedTime) throws Exception
countDeleteChunks in interface org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStoreExceptionpublic Iterator<String> getAllChunkIds(long maxLastModifiedTime) throws Exception
getAllChunkIds in interface org.apache.jackrabbit.oak.spi.blob.GarbageCollectableBlobStoreExceptionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.