public class S3BinaryManager 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 |
S3BinaryManager.S3BinaryGarbageCollector
Garbage collector for S3 binaries that stores the marked (in use) binaries in memory.
|
class |
S3BinaryManager.S3FileStorage |
Modifier and Type | Field and Description |
---|---|
static String |
AWS_ID_ENV_KEY |
static String |
AWS_ID_KEY |
static String |
AWS_SECRET_ENV_KEY |
static String |
AWS_SECRET_KEY |
static String |
BUCKET_NAME_KEY |
static String |
BUCKET_PREFIX_KEY |
static String |
BUCKET_REGION_KEY |
static String |
CACHE_SIZE_KEY |
static String |
CONNECTION_MAX_KEY
AWS ClientConfiguration default 50
|
static String |
CONNECTION_RETRY_KEY
AWS ClientConfiguration default 3 (with exponential backoff)
|
static String |
CONNECTION_TIMEOUT_KEY
AWS ClientConfiguration default 50*1000 = 50s
|
static String |
DEFAULT_BUCKET_REGION |
static String |
DEFAULT_CACHE_SIZE |
static String |
ENDPOINT_KEY |
static String |
KEYSTORE_FILE_KEY |
static String |
KEYSTORE_PASS_KEY |
static String |
PRIVKEY_ALIAS_KEY |
static String |
PRIVKEY_PASS_KEY |
static String |
SOCKET_TIMEOUT_KEY
AWS ClientConfiguration default 50*1000 = 50s
|
fileCache
DEFAULT_DEPTH, DEFAULT_DIGEST, MAX_BUF_SIZE, MIN_BUF_SIZE
Constructor and Description |
---|
S3BinaryManager() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the binary manager and releases all resources and temporary objects held by it.
|
void |
initialize(BinaryManagerDescriptor binaryManagerDescriptor)
Initializer.
|
static boolean |
isMD5(String digest) |
getBinary, getFile, getLength, initializeCache, initializeCache
getBinary, getGarbageCollector, toHexString
public static final String BUCKET_NAME_KEY
public static final String BUCKET_PREFIX_KEY
public static final String BUCKET_REGION_KEY
public static final String DEFAULT_BUCKET_REGION
public static final String AWS_ID_KEY
public static final String AWS_ID_ENV_KEY
public static final String AWS_SECRET_KEY
public static final String AWS_SECRET_ENV_KEY
public static final String CACHE_SIZE_KEY
public static final String DEFAULT_CACHE_SIZE
public static final String CONNECTION_MAX_KEY
public static final String CONNECTION_RETRY_KEY
public static final String CONNECTION_TIMEOUT_KEY
public static final String SOCKET_TIMEOUT_KEY
public static final String KEYSTORE_FILE_KEY
public static final String KEYSTORE_PASS_KEY
public static final String PRIVKEY_ALIAS_KEY
public static final String PRIVKEY_PASS_KEY
public static final String ENDPOINT_KEY
public void initialize(BinaryManagerDescriptor binaryManagerDescriptor) throws IOException
BinaryManager
initialize
in interface BinaryManager
initialize
in class CachingBinaryManager
IOException
public void close()
BinaryManager
close
in interface Closeable
close
in interface AutoCloseable
close
in interface BinaryManager
close
in class CachingBinaryManager
public static boolean isMD5(String digest)
Copyright © 2015 Nuxeo SA. All rights reserved.