Class GcsStreamingMessageSource

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.integration.core.MessageSource<InputStream>, org.springframework.integration.IntegrationPattern, org.springframework.integration.support.context.NamedComponent, org.springframework.integration.support.management.IntegrationInboundManagement, org.springframework.integration.support.management.IntegrationManagement, org.springframework.integration.support.management.ManageableLifecycle, org.springframework.integration.support.management.MessageSourceManagement

    public class GcsStreamingMessageSource
    extends org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<BlobInfo>
    A streaming message source for Google Cloud Storage.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagement

        org.springframework.integration.support.management.IntegrationManagement.ManagementOverrides
    • Field Summary

      • Fields inherited from class org.springframework.integration.util.AbstractExpressionEvaluator

        EXPRESSION_PARSER, logger
      • Fields inherited from interface org.springframework.integration.support.management.IntegrationManagement

        METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected List<org.springframework.integration.file.remote.AbstractFileInfo<BlobInfo>> asFileInfoList​(Collection<BlobInfo> collection)  
      String getComponentType()  
      protected boolean isDirectory​(BlobInfo blobInfo)  
      void setRemoteFileSeparator​(String remoteFileSeparator)  
      • Methods inherited from class org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource

        doInit, doReceive, doSetFilter, getRemoteFileTemplate, isRunning, onInit, poll, remotePath, rollbackFromFileToListEnd, setFileInfoJson, setFilter, setRemoteDirectory, setRemoteDirectoryExpression, start, stop
      • Methods inherited from class org.springframework.integration.endpoint.AbstractFetchLimitingMessageSource

        doReceive, getMaxFetchSize, setMaxFetchSize
      • Methods inherited from class org.springframework.integration.endpoint.AbstractMessageSource

        buildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedType
      • Methods inherited from class org.springframework.integration.util.AbstractExpressionEvaluator

        afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService
      • Methods inherited from interface org.springframework.integration.support.management.IntegrationManagement

        getThisAs
      • Methods inherited from interface org.springframework.integration.core.MessageSource

        getIntegrationPatternType
    • Constructor Detail

      • GcsStreamingMessageSource

        public GcsStreamingMessageSource​(org.springframework.integration.file.remote.RemoteFileTemplate<BlobInfo> template)
      • GcsStreamingMessageSource

        public GcsStreamingMessageSource​(org.springframework.integration.file.remote.RemoteFileTemplate<BlobInfo> template,
                                         Comparator<BlobInfo> comparator)
        Creates a GcsStreamingMessageSource with a comparator which controls the order that files are processed in.
        Parameters:
        template - template making remote file calls to Google Cloud Storage
        comparator - defines the order that files should be processed based on BlobInfo.
        Since:
        1.2
    • Method Detail

      • getComponentType

        public String getComponentType()
      • setRemoteFileSeparator

        public void setRemoteFileSeparator​(String remoteFileSeparator)
        Overrides:
        setRemoteFileSeparator in class org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<BlobInfo>
      • asFileInfoList

        protected List<org.springframework.integration.file.remote.AbstractFileInfo<BlobInfo>> asFileInfoList​(Collection<BlobInfo> collection)
        Specified by:
        asFileInfoList in class org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<BlobInfo>
      • isDirectory

        protected boolean isDirectory​(BlobInfo blobInfo)
        Specified by:
        isDirectory in class org.springframework.integration.file.remote.AbstractRemoteFileStreamingMessageSource<BlobInfo>