Package org.nuxeo.ecm.core.storage.gcp
Class GoogleStorageBlobStoreConfiguration
- java.lang.Object
-
- org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
-
- org.nuxeo.ecm.core.blob.AbstractBlobStoreConfiguration
-
- org.nuxeo.ecm.blob.CloudBlobStoreConfiguration
-
- org.nuxeo.ecm.core.storage.gcp.GoogleStorageBlobStoreConfiguration
-
public class GoogleStorageBlobStoreConfiguration extends CloudBlobStoreConfiguration
Blob storage configuration in Google Storage.- Since:
- 2023.5
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
allowByteRange
protected com.google.cloud.storage.Bucket
bucket
static String
BUCKET_NAME_PROPERTY
static String
BUCKET_PREFIX_PROPERTY
protected String
bucketName
protected String
bucketPrefix
protected int
chunkSize
static int
DEFAULT_UPLOAD_CHUNK_SIZE
Default is taken fromBaseWriteChannel
.static String
DELIMITER
static String
GCP_JSON_FILE
static String
GOOGLE_APPLICATION_CREDENTIALS
static String
GOOGLE_PLATFORM_SCOPE
static String
GOOGLE_STORAGE_SCOPE
protected static Logger
log
static String
PROJECT_ID_PROPERTY
protected com.google.cloud.storage.Storage
storage
static String
SYSTEM_PROPERTY_PREFIX
static String
UPLOAD_CHUNK_SIZE_PROPERTY
-
Fields inherited from class org.nuxeo.ecm.blob.CloudBlobStoreConfiguration
cachingConfiguration, DEFAULT_DIRECTDOWNLOAD_EXPIRE, DIGEST_ALGORITHM_PROPERTY, digestConfiguration, directDownload, DIRECTDOWNLOAD_EXPIRE_PROPERTY, DIRECTDOWNLOAD_PROPERTY, directDownloadExpire
-
Fields inherited from class org.nuxeo.ecm.core.blob.AbstractBlobStoreConfiguration
namespace
-
Fields inherited from class org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
properties, systemPropertyPrefix
-
-
Constructor Summary
Constructors Constructor Description GoogleStorageBlobStoreConfiguration(Map<String,String> properties)
-
Method Summary
-
Methods inherited from class org.nuxeo.ecm.blob.CloudBlobStoreConfiguration
parseDirectDownload, parseDirectDownloadExpire
-
Methods inherited from class org.nuxeo.ecm.core.blob.AbstractBlobStoreConfiguration
propertiesWithNamespace
-
Methods inherited from class org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
getBooleanProperty, getIntProperty, getIntProperty, getLongProperty, getProperty, getProperty
-
-
-
-
Field Detail
-
log
protected static final Logger log
-
BUCKET_NAME_PROPERTY
public static final String BUCKET_NAME_PROPERTY
- See Also:
- Constant Field Values
-
BUCKET_PREFIX_PROPERTY
public static final String BUCKET_PREFIX_PROPERTY
- See Also:
- Constant Field Values
-
UPLOAD_CHUNK_SIZE_PROPERTY
public static final String UPLOAD_CHUNK_SIZE_PROPERTY
- See Also:
- Constant Field Values
-
DEFAULT_UPLOAD_CHUNK_SIZE
public static final int DEFAULT_UPLOAD_CHUNK_SIZE
Default is taken fromBaseWriteChannel
.- See Also:
- Constant Field Values
-
SYSTEM_PROPERTY_PREFIX
public static final String SYSTEM_PROPERTY_PREFIX
- See Also:
- Constant Field Values
-
GOOGLE_PLATFORM_SCOPE
public static final String GOOGLE_PLATFORM_SCOPE
- See Also:
- Constant Field Values
-
GOOGLE_STORAGE_SCOPE
public static final String GOOGLE_STORAGE_SCOPE
- See Also:
- Constant Field Values
-
GOOGLE_APPLICATION_CREDENTIALS
public static final String GOOGLE_APPLICATION_CREDENTIALS
- See Also:
- Constant Field Values
-
GCP_JSON_FILE
public static final String GCP_JSON_FILE
- See Also:
- Constant Field Values
-
DELIMITER
public static final String DELIMITER
- See Also:
- Constant Field Values
-
PROJECT_ID_PROPERTY
public static final String PROJECT_ID_PROPERTY
- See Also:
- Constant Field Values
-
storage
protected final com.google.cloud.storage.Storage storage
-
bucketName
protected final String bucketName
-
bucketPrefix
protected final String bucketPrefix
-
bucket
protected final com.google.cloud.storage.Bucket bucket
-
allowByteRange
protected final boolean allowByteRange
-
chunkSize
protected final int chunkSize
-
-
Constructor Detail
-
GoogleStorageBlobStoreConfiguration
public GoogleStorageBlobStoreConfiguration(Map<String,String> properties) throws IOException
- Throws:
IOException
-
-