Class GoogleCloudStorageConfiguration

  • All Implemented Interfaces:
    Cloneable

    @UriParams
    public class GoogleCloudStorageConfiguration
    extends Object
    implements Cloneable
    • Constructor Detail

      • GoogleCloudStorageConfiguration

        public GoogleCloudStorageConfiguration()
    • Method Detail

      • getBucketName

        public String getBucketName()
      • setBucketName

        public void setBucketName​(String bucketName)
        Bucket name
      • getServiceAccountKey

        public String getServiceAccountKey()
      • setServiceAccountKey

        public void setServiceAccountKey​(String serviceAccountKey)
        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

        public String getObjectName()
      • setObjectName

        public void setObjectName​(String objectName)
        The ObjectName (the file insisde the bucket)
      • getStorageLocation

        public String getStorageLocation()
      • setStorageLocation

        public void setStorageLocation​(String storageLocation)
        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 -
      • setOperation

        public void setOperation​(GoogleCloudStorageOperations operation)
        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

        public String getDestinationBucket()
      • setDestinationBucket

        public void setDestinationBucket​(String destinationBucket)
        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

        public String getDownloadFileName()
      • setDownloadFileName

        public void setDownloadFileName​(String downloadFileName)
        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()
      • setFilter

        public void setFilter​(String filter)
        A regular expression to include only blobs with name matching it.
      • getFilter

        public String getFilter()