public class FileBlobStore extends AbstractBlobStore
AbstractBlobStore.BlockId, AbstractBlobStore.Data| Constructor and Description |
|---|
FileBlobStore(java.lang.String dir) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clear the cache.
|
long |
countDeleteChunks(java.util.List<java.lang.String> chunkIds,
long maxLastModifiedTime)
Deletes the blobs with the given ids.
|
java.util.Iterator<java.lang.String> |
getAllChunkIds(long maxLastModifiedTime)
Gets all the identifiers.
|
void |
startMark()
Start the mark phase.
|
int |
sweep()
Remove all unused blocks.
|
java.lang.String |
writeBlob(java.lang.String tempFilePath)
Write a blob from a temporary file.
|
clearInUse, close, deleteChunks, getBlobId, getBlobLength, getBlockSize, getBlockSizeMin, getInputStream, getReference, load, readBlob, resolveChunks, setBlockSize, setBlockSizeMin, setReferenceKey, setReferenceKeyEncoded, setReferenceKeyPlainText, setStatsCollector, writeBlob, writeBlobpublic java.lang.String writeBlob(java.lang.String tempFilePath)
throws java.io.IOException
GarbageCollectableBlobStorewriteBlob in interface GarbageCollectableBlobStorewriteBlob in class AbstractBlobStoretempFilePath - the temporary file namejava.io.IOExceptionpublic void startMark()
throws java.io.IOException
GarbageCollectableBlobStorestartMark in interface GarbageCollectableBlobStorestartMark in class AbstractBlobStorejava.io.IOExceptionpublic int sweep()
throws java.io.IOException
GarbageCollectableBlobStoresweep in interface GarbageCollectableBlobStoresweep in class AbstractBlobStorejava.io.IOExceptionpublic long countDeleteChunks(java.util.List<java.lang.String> chunkIds,
long maxLastModifiedTime)
throws java.lang.Exception
GarbageCollectableBlobStorechunkIds - the chunk idsmaxLastModifiedTime - the max last modified time to consider for retrieval,
with the special value '0' meaning no filtering by timejava.lang.Exception - the exceptionpublic java.util.Iterator<java.lang.String> getAllChunkIds(long maxLastModifiedTime)
throws java.lang.Exception
GarbageCollectableBlobStoremaxLastModifiedTime - the max last modified time to consider for retrieval,
with the special value '0' meaning no filtering by timejava.lang.Exception - the exceptionpublic void clearCache()
GarbageCollectableBlobStoreCopyright © 2010 - 2023 Adobe. All Rights Reserved