Class GoogleCloudStorageConfiguration
java.lang.Object
org.apache.camel.component.google.storage.GoogleCloudStorageConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()com.google.cloud.storage.StorageClasscom.google.cloud.storage.StoragebooleanbooleanbooleanbooleanbooleanvoidsetAutoCreateBucket(boolean autoCreateBucket) Setting the autocreation of the bucket bucketName.voidsetBucketName(String bucketName) Bucket namevoidsetDeleteAfterRead(boolean deleteAfterRead) Delete objects from the bucket after they have been retrieved.voidsetDestinationBucket(String destinationBucket) Define the destination bucket where an object must be moved when moveAfterRead is set to true.voidsetDownloadFileName(String downloadFileName) The folder or filename to use when downloading the blob.voidA regular expression to include only blobs with name matching it.voidsetIncludeBody(boolean includeBody) If it is true, the Object exchange will be consumed and put into the body.voidsetIncludeFolders(boolean includeFolders) If it is true, the folders/directories will be consumed.voidsetMoveAfterRead(boolean moveAfterRead) Move objects from the origin bucket to a different bucket after they have been retrieved.voidsetObjectName(String objectName) The ObjectName (the file insisde the bucket)voidsetOperation(GoogleCloudStorageOperations operation) Set the operation for the producervoidsetServiceAccountKey(String serviceAccountKey) The Service account key that can be used as credentials for the Storage client.voidsetStorageClass(com.google.cloud.storage.StorageClass storageClass) The Cloud Storage class to use when creating the new bucketsvoidsetStorageClient(com.google.cloud.storage.Storage storageClient) The storage clientvoidsetStorageLocation(String storageLocation) The Cloud Storage location to use when creating the new buckets.
-
Constructor Details
-
GoogleCloudStorageConfiguration
public GoogleCloudStorageConfiguration()
-
-
Method Details
-
getBucketName
-
setBucketName
Bucket name -
getServiceAccountKey
-
setServiceAccountKey
The Service account key that can be used as credentials for the Storage client. It can be loaded by default from classpath, but you can prefix with "classpath:", "file:", or "http:" to load the resource from different systems. -
getObjectName
-
setObjectName
The ObjectName (the file insisde the bucket) -
getStorageLocation
-
setStorageLocation
The Cloud Storage location to use when creating the new buckets. The complete available locations list at https://cloud.google.com/storage/docs/locations#location-mr -
getStorageClass
public com.google.cloud.storage.StorageClass getStorageClass() -
setStorageClass
public void setStorageClass(com.google.cloud.storage.StorageClass storageClass) The Cloud Storage class to use when creating the new buckets- Parameters:
storageClass-
-
getStorageClient
public com.google.cloud.storage.Storage getStorageClient() -
setStorageClient
public void setStorageClient(com.google.cloud.storage.Storage storageClient) The storage client- Parameters:
storageClient-
-
getOperation
-
setOperation
Set the operation for the producer- Parameters:
operation-
-
isAutoCreateBucket
public boolean isAutoCreateBucket() -
setAutoCreateBucket
public void setAutoCreateBucket(boolean autoCreateBucket) Setting the autocreation of the bucket bucketName. -
isMoveAfterRead
public boolean isMoveAfterRead() -
setMoveAfterRead
public void setMoveAfterRead(boolean moveAfterRead) Move objects from the origin bucket to a different bucket after they have been retrieved. To accomplish the operation the destinationBucket option must be set. The copy bucket operation is only performed if the Exchange is committed. If a rollback occurs, the object is not moved. -
getDestinationBucket
-
setDestinationBucket
Define the destination bucket where an object must be moved when moveAfterRead is set to true. -
setIncludeFolders
public void setIncludeFolders(boolean includeFolders) If it is true, the folders/directories will be consumed. If it is false, they will be ignored, and Exchanges will not be created for those -
isIncludeFolders
public boolean isIncludeFolders() -
getDownloadFileName
-
setDownloadFileName
The folder or filename to use when downloading the blob. By default, this specifies the folder name, and the name of the file is the blob name. For example, setting this to mydownload will be the same as setting mydownload/${file:name}. You can use dynamic expressions for fine-grained control. For example, you can specify ${date:now:yyyyMMdd}/${file:name} to store the blob in sub folders based on today's day. Only ${file:name} and ${file:name.noext} is supported as dynamic tokens for the blob name. -
isDeleteAfterRead
public boolean isDeleteAfterRead() -
setDeleteAfterRead
public void setDeleteAfterRead(boolean deleteAfterRead) Delete objects from the bucket after they have been retrieved. The delete is only performed if the Exchange is committed. If a rollback occurs, the object is not deleted. If this option is false, then the same objects will be retrieve over and over again on the polls. -
setIncludeBody
public void setIncludeBody(boolean includeBody) If it is true, the Object exchange will be consumed and put into the body. If false the Object stream will be put raw into the body and the headers will be set with the object metadata. -
isIncludeBody
public boolean isIncludeBody() -
copy
-
setFilter
A regular expression to include only blobs with name matching it. -
getFilter
-