|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GarbageCollectableBlobStore
A blob store that supports garbage collection.
| Method Summary | |
|---|---|
void |
clearCache()
Clear the cache. |
void |
clearInUse()
Clear all objects marked as "transiently in use". |
boolean |
deleteChunks(List<String> chunkIds,
long maxLastModifiedTime)
Deletes the blobs with the given ids. |
Iterator<String> |
getAllChunkIds(long maxLastModifiedTime)
Gets all the identifiers. |
long |
getBlockSizeMin()
Get the minimum block size (if there is any). |
Iterator<String> |
resolveChunks(String blobId)
Resolve chunks from the given Id. |
void |
setBlockSize(int x)
Set the block size used by this blob store, if the blob store splits binaries into blocks. |
void |
startMark()
Start the mark phase. |
int |
sweep()
Remove all unused blocks. |
String |
writeBlob(String tempFileName)
Write a blob from a temporary file. |
| Methods inherited from interface org.apache.jackrabbit.oak.spi.blob.BlobStore |
|---|
getBlobId, getBlobLength, getInputStream, getReference, readBlob, writeBlob |
| Method Detail |
|---|
void setBlockSize(int x)
x - the block size in bytes.
String writeBlob(String tempFileName)
throws IOException
tempFileName - the temporary file name
IOException
int sweep()
throws IOException
IOException
void startMark()
throws IOException
IOExceptionvoid clearInUse()
void clearCache()
long getBlockSizeMin()
Iterator<String> getAllChunkIds(long maxLastModifiedTime)
throws Exception
maxLastModifiedTime - the max last modified time to consider for retrieval
Exception - the exception
boolean deleteChunks(List<String> chunkIds,
long maxLastModifiedTime)
throws Exception
chunkIds - the chunk idsmaxLastModifiedTime - the max last modified time to consider for retrieval
Exception - the exception
Iterator<String> resolveChunks(String blobId)
throws IOException
blobId - the blob id
IOException - Signals that an I/O exception has occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||