public class JCloudsBinaryManager extends CachingBinaryManager
The BLOBs are cached locally on first access for efficiency.
Because the BLOB length can be accessed independently of the binary stream, it is also cached in a simple text file if accessed before the stream.
Modifier and Type | Class and Description |
---|---|
static class |
JCloudsBinaryManager.JCloudsBinaryGarbageCollector
Garbage collector for the blobstore binaries that stores the marked (in use) binaries in memory.
|
class |
JCloudsBinaryManager.JCloudsFileStorage |
Modifier and Type | Field and Description |
---|---|
static String |
BLOBSTORE_IDENTITY_KEY |
static String |
BLOBSTORE_LOCATION_KEY |
static String |
BLOBSTORE_MAP_NAME_KEY |
static String |
BLOBSTORE_PROVIDER_KEY |
static String |
BLOBSTORE_SECRET_KEY |
static String |
CACHE_SIZE_KEY |
static String |
DEFAULT_CACHE_SIZE |
static String |
DEFAULT_LOCATION |
fileCache
DEFAULT_DEPTH, DEFAULT_DIGEST, MAX_BUF_SIZE, MIN_BUF_SIZE
PROP_KEY, PROP_PATH
Constructor and Description |
---|
JCloudsBinaryManager() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(String blobProviderId,
Map<String,String> properties)
Initializes the binary manager.
|
static boolean |
isMD5(String digest) |
close, getBinary, getFile, getLength, initializeCache, initializeCache
getBinary, getGarbageCollector, toHexString
public static final String BLOBSTORE_PROVIDER_KEY
public static final String BLOBSTORE_MAP_NAME_KEY
public static final String BLOBSTORE_LOCATION_KEY
public static final String DEFAULT_LOCATION
public static final String BLOBSTORE_IDENTITY_KEY
public static final String BLOBSTORE_SECRET_KEY
public static final String CACHE_SIZE_KEY
public static final String DEFAULT_CACHE_SIZE
public void initialize(String blobProviderId, Map<String,String> properties) throws IOException
BinaryManager
initialize
in interface BinaryManager
initialize
in class CachingBinaryManager
blobProviderId
- the blob provider id for this binary managerproperties
- initialization propertiesIOException
public static boolean isMD5(String digest)
Copyright © 2015 Nuxeo SA. All rights reserved.