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, writeBlob
public java.lang.String writeBlob(java.lang.String tempFilePath) throws java.io.IOException
GarbageCollectableBlobStore
writeBlob
in interface GarbageCollectableBlobStore
writeBlob
in class AbstractBlobStore
tempFilePath
- the temporary file namejava.io.IOException
public void startMark() throws java.io.IOException
GarbageCollectableBlobStore
startMark
in interface GarbageCollectableBlobStore
startMark
in class AbstractBlobStore
java.io.IOException
public int sweep() throws java.io.IOException
GarbageCollectableBlobStore
sweep
in interface GarbageCollectableBlobStore
sweep
in class AbstractBlobStore
java.io.IOException
public long countDeleteChunks(java.util.List<java.lang.String> chunkIds, long maxLastModifiedTime) throws java.lang.Exception
GarbageCollectableBlobStore
chunkIds
- 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
GarbageCollectableBlobStore
maxLastModifiedTime
- 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()
GarbageCollectableBlobStore
Copyright © 2010 - 2020 Adobe. All Rights Reserved