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, propertiescachedir, fileCache, fileStorageblobProviderId, 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 |
|---|
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, performsExternalAccessControl, readBlob, supportsUserUpdate, supportsUserUpdateDefaultTrue, writeBlobclose, getBinary, getBinary, getFile, initializeCache, initializeCache, initializeCachegetBinary, getDefaultDigestAlgorithm, getDescriptor, getDigestAlgorithm, getGarbageCollector, storeAndDigest, toHexStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, freezeVersion, getAppLinks, getAvailableConversions, getConvertedStream, getStream, getThumbnail, isVersionpublic 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()
AbstractCloudBinaryManagergetSystemPropertyPrefix in class AbstractCloudBinaryManagerprotected void setupCloudClient() throws IOException
AbstractCloudBinaryManagersetupCloudClient in class AbstractCloudBinaryManagerIOExceptionprotected BinaryGarbageCollector instantiateGarbageCollector()
instantiateGarbageCollector in class AbstractCloudBinaryManagerprotected FileStorage getFileStorage()
getFileStorage in class AbstractCloudBinaryManagerprotected URI getRemoteUri(String digest, ManagedBlob blob, javax.servlet.http.HttpServletRequest servletRequest) throws IOException
getRemoteUri in class AbstractCloudBinaryManagerIOExceptionprotected void removeBinary(String digest)
public void removeBinaries(Collection<String> digests)
BinaryManagerremoveBinaries in interface BinaryManagerremoveBinaries in class AbstractCloudBinaryManagerdigests - a set of digests, must not be null.Copyright © 2016 Nuxeo SA. All rights reserved.