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 |
static String |
PROPERTIES_PREFIX |
protected com.microsoft.azure.storage.CloudStorageAccount |
storageAccount |
CACHE_PROPERTY, 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 String |
getPropertyPrefix()
Gets the property prefix used in configurarion properties
|
protected URI |
getRemoteUri(String digest,
ManagedBlob blob,
javax.servlet.http.HttpServletRequest servletRequest) |
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
|
getConfigurationKey, getContentDispositionHeader, getContentTypeHeader, getIntFrameworkProperty, getProperty, getProperty, getURI, initialize, isDirectDownload, readBlob, supportsUserUpdate, supportsUserUpdateDefaultTrue, writeBlob
close, getBinary, getBinary, getFile, getLength, getLengthFromCache, 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, getBinaryManager, getConvertedStream, getStream, getThumbnail, isVersion
public static final String ENDPOINT_PROTOCOL_PROPERTY
public static final String PROPERTIES_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 getPropertyPrefix()
AbstractCloudBinaryManager
getPropertyPrefix
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 © 2015 Nuxeo SA. All rights reserved.