Package org.nuxeo.ecm.core.blob
Class InMemoryBlobProvider
java.lang.Object
org.nuxeo.ecm.core.blob.AbstractBlobProvider
org.nuxeo.ecm.core.blob.BlobStoreBlobProvider
org.nuxeo.ecm.core.blob.InMemoryBlobProvider
- All Implemented Interfaces:
BlobProvider
Blob storage in memory, mostly for unit tests.
- Since:
- 11.1
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.blob.BlobStoreBlobProvider
BlobStoreBlobProvider.AutoDeleteFileInputStream
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.blob.BlobStoreBlobProvider
DIGEST_KEY_STRATEGY, KEY_STRATEGY_PROPERTY, MANAGED_KEY_STRATEGY, store
Fields inherited from class org.nuxeo.ecm.core.blob.AbstractBlobProvider
blobProviderId, properties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this blob provider and releases resources that may be held by it.protected BlobStore
getBlobStore
(String blobProviderId, Map<String, String> properties) protected String
The digest algorithm to use for the default key strategy.Gets the name of the scroll to scroll the blobs of the underlying blob store.Methods inherited from class org.nuxeo.ecm.core.blob.BlobStoreBlobProvider
allowDirectDownload, deleteBlob, fixupDigest, getBinaryGarbageCollector, getFile, getKeyStrategy, getStream, getStream, initialize, isValidKey, readBlob, stripBlobKeyPrefix, stripBlobKeyVersionSuffix, supportsSync, updateBlob, writeBlob, writeBlob
Methods inherited from class org.nuxeo.ecm.core.blob.AbstractBlobProvider
allowByteRange, getProperties, hasCreateFromKeyPermission, isColdStorageMode, isRecordMode, isTransactional, isTransient, supportsUserUpdate, supportsUserUpdateDefaultFalse, supportsUserUpdateDefaultTrue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.core.blob.BlobProvider
canConvert, getAppLinks, getAvailableConversions, getBinaryManager, getStatus, getThumbnail, getURI, isVersion, performsExternalAccessControl, readBlob
-
Field Details
-
STORE_SCROLL_NAME
- Since:
- 2023
- See Also:
-
digestConfiguration
-
-
Constructor Details
-
InMemoryBlobProvider
public InMemoryBlobProvider()
-
-
Method Details
-
getBlobStore
protected BlobStore getBlobStore(String blobProviderId, Map<String, String> properties) throws IOException- Specified by:
getBlobStore
in classBlobStoreBlobProvider
- Throws:
IOException
-
close
public void close()Description copied from interface:BlobProvider
Closes this blob provider and releases resources that may be held by it. -
getDigestAlgorithm
Description copied from class:BlobStoreBlobProvider
The digest algorithm to use for the default key strategy.- Specified by:
getDigestAlgorithm
in classBlobStoreBlobProvider
-
getStoreScrollName
Description copied from class:BlobStoreBlobProvider
Gets the name of the scroll to scroll the blobs of the underlying blob store.- Specified by:
getStoreScrollName
in classBlobStoreBlobProvider
-