public class AzureBinaryManager extends AbstractCloudBinaryManager
Modifier and Type | Field and Description |
---|---|
static String |
ACCOUNT_KEY_PROPERTY |
static String |
ACCOUNT_NAME_PROPERTY |
protected com.microsoft.azure.storage.blob.CloudBlobClient |
blobClient |
protected com.microsoft.azure.storage.blob.CloudBlobContainer |
container |
static String |
CONTAINER_PROPERTY |
static String |
ENDPOINT_PROTOCOL_PROPERTY |
protected com.microsoft.azure.storage.CloudStorageAccount |
storageAccount |
static String |
SYSTEM_PROPERTY_PREFIX |
CACHE_COUNT_PROPERTY, CACHE_MIN_AGE_PROPERTY, CACHE_SIZE_PROPERTY, DEFAULT_CACHE_COUNT, DEFAULT_CACHE_MIN_AGE, DEFAULT_CACHE_SIZE, DEFAULT_DIRECTDOWNLOAD, DEFAULT_DIRECTDOWNLOAD_EXPIRE, directDownload, DIRECTDOWNLOAD_EXPIRE_PROPERTY, DIRECTDOWNLOAD_PROPERTY, directDownloadExpire, properties
cachedir, fileCache, fileStorage, LEN_DIGEST_SUFFIX
blobProviderId, 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_LENGTH
PROP_KEY, PROP_PATH
Constructor and Description |
---|
AzureBinaryManager() |
Modifier and Type | Method and Description |
---|---|
protected FileStorage |
getFileStorage() |
protected URI |
getRemoteUri(String digest,
ManagedBlob blob,
javax.servlet.http.HttpServletRequest servletRequest) |
protected String |
getSystemPropertyPrefix()
Gets the prefix used for configuration using system properties.
|
protected BinaryGarbageCollector |
instantiateGarbageCollector() |
void |
removeBinaries(Collection<String> digests)
Remove definitively a set of binaries
|
protected void |
removeBinary(String digest) |
protected void |
setupCloudClient()
Configure Cloud client using properties
|
getBinaryManager, getContentDispositionHeader, getContentTypeHeader, getIntProperty, getProperty, getProperty, getSystemPropertyName, getURI, initialize, isDirectDownload, readBlob, supportsUserUpdate, supportsUserUpdateDefaultTrue, writeBlob
close, getBinary, getBinary, getFile, getLength, getLengthFromCache, initializeCache, initializeCache, initializeCache, putLengthInCache
getBinary, getDefaultDigestAlgorithm, getDescriptor, getDigestAlgorithm, getGarbageCollector, storeAndDigest, toHexString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, freezeVersion, getAppLinks, getAvailableConversions, getConvertedStream, getStream, getThumbnail, isVersion
public static final String ENDPOINT_PROTOCOL_PROPERTY
public static final String SYSTEM_PROPERTY_PREFIX
public static final String ACCOUNT_NAME_PROPERTY
public static final String ACCOUNT_KEY_PROPERTY
public static final String CONTAINER_PROPERTY
protected com.microsoft.azure.storage.CloudStorageAccount storageAccount
protected com.microsoft.azure.storage.blob.CloudBlobClient blobClient
protected com.microsoft.azure.storage.blob.CloudBlobContainer container
public AzureBinaryManager()
protected String getSystemPropertyPrefix()
AbstractCloudBinaryManager
getSystemPropertyPrefix
in class AbstractCloudBinaryManager
protected void setupCloudClient() throws IOException
AbstractCloudBinaryManager
setupCloudClient
in class AbstractCloudBinaryManager
IOException
protected BinaryGarbageCollector instantiateGarbageCollector()
instantiateGarbageCollector
in class AbstractCloudBinaryManager
protected FileStorage getFileStorage()
getFileStorage
in class AbstractCloudBinaryManager
protected URI getRemoteUri(String digest, ManagedBlob blob, javax.servlet.http.HttpServletRequest servletRequest) throws IOException
getRemoteUri
in class AbstractCloudBinaryManager
IOException
protected void removeBinary(String digest)
public void removeBinaries(Collection<String> digests)
BinaryManager
removeBinaries
in interface BinaryManager
removeBinaries
in class AbstractCloudBinaryManager
digests
- a set of digests, must not be null
.Copyright © 2016 Nuxeo SA. All rights reserved.