public class FileBlobStore extends AbstractBlobStore
AbstractBlobStore.BlockId, AbstractBlobStore.Data| Constructor and Description |
|---|
FileBlobStore(String dir) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clear the cache.
|
long |
countDeleteChunks(List<String> chunkIds,
long maxLastModifiedTime)
Deletes the blobs with the given ids.
|
Iterator<String> |
getAllChunkIds(long maxLastModifiedTime)
Gets all the identifiers.
|
void |
startMark()
Start the mark phase.
|
int |
sweep()
Remove all unused blocks.
|
String |
writeBlob(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 FileBlobStore(String dir)
public String writeBlob(String tempFilePath) throws IOException
GarbageCollectableBlobStorewriteBlob in interface GarbageCollectableBlobStorewriteBlob in class AbstractBlobStoretempFilePath - the temporary file nameIOExceptionpublic void startMark()
throws IOException
GarbageCollectableBlobStorestartMark in interface GarbageCollectableBlobStorestartMark in class AbstractBlobStoreIOExceptionpublic int sweep()
throws IOException
GarbageCollectableBlobStoresweep in interface GarbageCollectableBlobStoresweep in class AbstractBlobStoreIOExceptionpublic long countDeleteChunks(List<String> chunkIds, long maxLastModifiedTime) throws Exception
GarbageCollectableBlobStorechunkIds - the chunk idsmaxLastModifiedTime - the max last modified time to consider for retrieval,
with the special value '0' meaning no filtering by timeException - the exceptionpublic Iterator<String> getAllChunkIds(long maxLastModifiedTime) throws Exception
GarbageCollectableBlobStoremaxLastModifiedTime - the max last modified time to consider for retrieval,
with the special value '0' meaning no filtering by timeException - the exceptionpublic void clearCache()
GarbageCollectableBlobStoreCopyright © 2010 - 2020 Adobe. All Rights Reserved