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 |
|---|---|
protected org.jclouds.blobstore.BlobStore |
blobStore |
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 |
protected String |
container |
static String |
DEFAULT_CACHE_SIZE |
static String |
DEFAULT_LOCATION |
protected String |
storeProvider |
cachedir, fileCache, fileStorage, LEN_DIGEST_SUFFIXblobProviderId, DEFAULT_DEPTH, DEFAULT_DIGEST, descriptor, DIGESTS_BY_LENGTH, garbageCollector, MAX_BUF_SIZE, MD5_DIGEST, MD5_DIGEST_LENGTH, MIN_BUF_SIZE, SHA1_DIGEST, SHA1_DIGEST_LENGTH, SHA256_DIGEST, SHA256_DIGEST_LENGTHPROP_KEY, PROP_PATH| Constructor and Description |
|---|
JCloudsBinaryManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createGarbageCollector() |
void |
initialize(String blobProviderId,
Map<String,String> properties)
Initializes the binary manager.
|
static boolean |
isMD5(String digest) |
protected void |
removeBinary(String digest) |
close, getBinary, getBinary, getFile, getLength, getLengthFromCache, initializeCache, initializeCache, putLengthInCachegetBinary, getDefaultDigestAlgorithm, getDescriptor, getDigestAlgorithm, getGarbageCollector, removeBinaries, storeAndDigest, toHexStringpublic 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
protected String storeProvider
protected org.jclouds.blobstore.BlobStore blobStore
public JCloudsBinaryManager()
public void initialize(String blobProviderId, Map<String,String> properties) throws IOException
BinaryManagerinitialize in interface BinaryManagerinitialize in class CachingBinaryManagerblobProviderId - the blob provider id for this binary managerproperties - initialization propertiesIOExceptionprotected void createGarbageCollector()
protected void removeBinary(String digest)
Copyright © 2015 Nuxeo SA. All rights reserved.