public class JCloudsBinaryManager.JCloudsBinaryFileCache extends BinaryFileCache
SIMPLE_ASCII
Constructor and Description |
---|
JCloudsBinaryManager.JCloudsBinaryFileCache(File dir,
long maxSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
fetchFile(String digest,
File tmp)
Fetches the file from the cache or the remote database.
|
Long |
fetchLength(String digest)
Fetches the length from the remote database.
|
getFile, getLength
clear, getNumberOfItems, getSize, getTempFile, putFile, putFile
public JCloudsBinaryManager.JCloudsBinaryFileCache(File dir, long maxSize)
public boolean fetchFile(String digest, File tmp)
BinaryFileCache
If something is retrieved from the database, it is put in cache.
fetchFile
in class BinaryFileCache
digest
- identify the file in cachetmp
- the temporary file to use to store the filetrue
if a file was fetched, false
if the expected
blob is missing from the database.public Long fetchLength(String digest)
BinaryFileCache
fetchLength
in class BinaryFileCache
digest
- identify the file in cachenull
if the expected blob is missing from
the database.Copyright © 2013 Nuxeo SA. All Rights Reserved.