Package org.nuxeo.ecm.core.storage.gcp
Class GoogleStorageBinaryManager
java.lang.Object
org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager
org.nuxeo.ecm.core.blob.binary.CachingBinaryManager
org.nuxeo.ecm.blob.AbstractCloudBinaryManager
org.nuxeo.ecm.core.storage.gcp.GoogleStorageBinaryManager
- All Implemented Interfaces:
BinaryManager
,BlobProvider
@Deprecated(since="2023.9")
public class GoogleStorageBinaryManager
extends AbstractCloudBinaryManager
Deprecated.
A Binary Manager that stores binaries as Google Storage BLOBs
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. Related to GCP credentials, here are the options:
- nuxeo.gcp.credentials=/path/to/file.json
- nuxeo.gcp.credentials=file.json (located in nxserver/config)
- If nothing is set, Nuxeo will look into 'gcp-credentials.json' file by default (located in nxserver/config)
- Since:
- 10.10-HF12
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Deprecated.static class
Deprecated. -
Field Summary
Modifier and TypeFieldDescriptionprotected com.google.cloud.storage.Bucket
Deprecated.static final String
Deprecated.static final String
Deprecated.protected String
Deprecated.protected String
Deprecated.protected int
Deprecated.static final int
Deprecated.Default is taken fromBaseWriteChannel
.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.protected com.google.cloud.storage.Storage
Deprecated.static final String
Deprecated.static final String
Deprecated.Fields inherited from class org.nuxeo.ecm.blob.AbstractCloudBinaryManager
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, DIGEST_ALGORITHM_PROPERTY, directDownload, DIRECTDOWNLOAD_EXPIRE_PROPERTY, DIRECTDOWNLOAD_PROPERTY, directDownloadExpire, namespace, transientFlag
Fields inherited from class org.nuxeo.ecm.core.blob.binary.CachingBinaryManager
cachedir, fileCache, fileStorage
Fields inherited from class org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager
blobProviderId, DEFAULT_DEPTH, DEFAULT_DIGEST, descriptor, digestPattern, DIGESTS_BY_LENGTH, garbageCollector, MAX_BUF_SIZE, MD5_DIGEST, MD5_DIGEST_LENGTH, MIN_BUF_SIZE, properties, SHA1_DIGEST, SHA1_DIGEST_LENGTH, SHA256_DIGEST, SHA256_DIGEST_LENGTH
Fields inherited from interface org.nuxeo.ecm.core.blob.binary.BinaryManager
PROP_KEY, PROP_PATH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
deleteBucket
(String bucketName) Deprecated.Deletes a bucket (and all its blobs) with the givenbucketName
.com.google.cloud.storage.Bucket
Deprecated.protected FileStorage
Deprecated.com.google.cloud.storage.Bucket
getOrCreateBucket
(String bucketName) Deprecated.Gets or creates a bucket with the givenbucketName
.protected String
Deprecated.Gets the prefix used for configuration using system properties.protected BinaryGarbageCollector
Deprecated.protected static boolean
Deprecated.void
removeBinaries
(Collection<String> digests) Deprecated.Remove definitively a set of binariesprotected void
removeBinary
(String digest) Deprecated.protected void
Deprecated.Configure Cloud client using propertiesMethods inherited from class org.nuxeo.ecm.blob.AbstractCloudBinaryManager
getBinaryManager, getBooleanProperty, getContentDispositionHeader, getContentTypeHeader, getDefaultDigestAlgorithm, getIntProperty, getIntProperty, getProperties, getProperty, getProperty, getRemoteUri, getSystemPropertyName, getURI, initialize, isDirectDownload, isTransient, performsExternalAccessControl, readBlob, supportsUserUpdate, supportsUserUpdateDefaultTrue, writeBlob
Methods inherited from class org.nuxeo.ecm.core.blob.binary.CachingBinaryManager
close, getBinary, getBinary, getFile, initializeCache, initializeCache, initializeCache
Methods inherited from class org.nuxeo.ecm.core.blob.binary.AbstractBinaryManager
computeDigestPattern, getBinary, getDescriptor, getDigestAlgorithm, getGarbageCollector, isValidDigest, setDescriptor, storeAndDigest, toHexString
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
allowByteRange, allowDirectDownload, canConvert, close, deleteBlob, getAppLinks, getAvailableConversions, getBinaryGarbageCollector, getFile, getStatus, getStream, getStream, getThumbnail, hasCreateFromKeyPermission, isColdStorageMode, isRecordMode, isTransactional, isVersion, readBlob, supportsSync, updateBlob, writeBlob
-
Field Details
-
BUCKET_NAME_PROPERTY
Deprecated.- See Also:
-
BUCKET_PREFIX_PROPERTY
Deprecated.- See Also:
-
UPLOAD_CHUNK_SIZE_PROPERTY
Deprecated.- Since:
- 11.4
- See Also:
-
DEFAULT_UPLOAD_CHUNK_SIZE
public static final int DEFAULT_UPLOAD_CHUNK_SIZEDeprecated.Default is taken fromBaseWriteChannel
.- Since:
- 11.4
- See Also:
-
PROJECT_ID_PROPERTY
Deprecated.- See Also:
-
GOOGLE_APPLICATION_CREDENTIALS
Deprecated.- See Also:
-
GOOGLE_PLATFORM_SCOPE
Deprecated.- See Also:
-
GOOGLE_STORAGE_SCOPE
Deprecated.- See Also:
-
SYSTEM_PROPERTY_PREFIX
Deprecated.- See Also:
-
DELIMITER
Deprecated.- See Also:
-
GCP_JSON_FILE
Deprecated.- See Also:
-
bucketName
Deprecated. -
bucketPrefix
Deprecated. -
bucket
protected com.google.cloud.storage.Bucket bucketDeprecated. -
storage
protected com.google.cloud.storage.Storage storageDeprecated. -
chunkSize
protected int chunkSizeDeprecated.- Since:
- 11.4
-
-
Constructor Details
-
GoogleStorageBinaryManager
public GoogleStorageBinaryManager()Deprecated.
-
-
Method Details
-
setupCloudClient
protected void setupCloudClient()Deprecated.Description copied from class:AbstractCloudBinaryManager
Configure Cloud client using properties- Specified by:
setupCloudClient
in classAbstractCloudBinaryManager
-
getOrCreateBucket
Deprecated.Gets or creates a bucket with the givenbucketName
.- Returns:
- the bucket instance.
-
deleteBucket
Deprecated.Deletes a bucket (and all its blobs) with the givenbucketName
.- Returns:
- boolean if bucket has been deleted or not.
-
getBucket
public com.google.cloud.storage.Bucket getBucket()Deprecated. -
getFileStorage
Deprecated.- Specified by:
getFileStorage
in classAbstractCloudBinaryManager
-
getSystemPropertyPrefix
Deprecated.Description copied from class:AbstractCloudBinaryManager
Gets the prefix used for configuration using system properties.- Specified by:
getSystemPropertyPrefix
in classAbstractCloudBinaryManager
-
isMD5
Deprecated. -
instantiateGarbageCollector
Deprecated.- Specified by:
instantiateGarbageCollector
in classAbstractCloudBinaryManager
-
removeBinaries
Deprecated.Description copied from interface:BinaryManager
Remove definitively a set of binaries- Specified by:
removeBinaries
in interfaceBinaryManager
- Specified by:
removeBinaries
in classAbstractCloudBinaryManager
- Parameters:
digests
- a set of digests, must not benull
.
-
removeBinary
Deprecated.
-
GoogleStorageBlobProvider
instead