public interface GarbageCollectableBlobStore extends BlobStore
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clear the cache.
|
void |
clearInUse()
Clear all objects marked as "transiently in use".
|
boolean |
deleteChunk(String chunkId)
Delete the blob with the given id.
|
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.
|
getBlobLength, readBlob, writeBlobvoid setBlockSize(int x)
x - the block size in bytes.String writeBlob(String tempFileName) throws IOException
tempFilePath - the temporary fileIOExceptionint sweep()
throws IOException
IOExceptionvoid 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 retrievalException - the exceptionboolean deleteChunk(String chunkId) throws Exception
chunkId - the chunk idException - the exceptionIterator<String> resolveChunks(String blobId) throws IOException
blobId - the blob idIOException - Signals that an I/O exception has occurred.Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.