Class GcsInboundFileSynchronizer
java.lang.Object
org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.google.cloud.storage.BlobInfo>
com.google.cloud.spring.storage.integration.inbound.GcsInboundFileSynchronizer
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.InitializingBean
,org.springframework.integration.file.remote.synchronizer.InboundFileSynchronizer
@ImportRuntimeHints(StorageIntegrationRuntimeHint.class)
public class GcsInboundFileSynchronizer
extends org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.google.cloud.storage.BlobInfo>
An inbound file synchronizer for Google Cloud Storage.
-
Field Summary
Fields inherited from class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer
EXPRESSION_PARSER, logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getFilename
(com.google.cloud.storage.BlobInfo file) protected long
getModified
(com.google.cloud.storage.BlobInfo file) protected boolean
isFile
(com.google.cloud.storage.BlobInfo file) protected String
protocol()
Methods inherited from class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer
afterPropertiesSet, close, copyFileToLocalDirectory, doInit, doSetFilter, doSetRemoteDirectoryExpression, filterFiles, getComparator, getRemoteFileMetadata, getTemporaryFileSuffix, removeRemoteFileMetadata, rollbackFromFileToListEnd, setBeanFactory, setBeanName, setComparator, setDeleteRemoteFiles, setFilter, setLocalFilenameGeneratorExpression, setLocalFilenameGeneratorExpressionString, setMetadataStorePrefix, setPreserveTimestamp, setRemoteDirectory, setRemoteDirectoryExpression, setRemoteDirectoryExpressionString, setRemoteFileMetadataStore, setRemoteFileSeparator, setTemporaryFileSuffix, synchronizeToLocalDirectory, synchronizeToLocalDirectory
-
Constructor Details
-
GcsInboundFileSynchronizer
public GcsInboundFileSynchronizer(com.google.cloud.storage.Storage gcs)
-
-
Method Details
-
isFile
protected boolean isFile(com.google.cloud.storage.BlobInfo file) - Specified by:
isFile
in classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.google.cloud.storage.BlobInfo>
-
getFilename
- Specified by:
getFilename
in classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.google.cloud.storage.BlobInfo>
-
getModified
protected long getModified(com.google.cloud.storage.BlobInfo file) - Specified by:
getModified
in classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.google.cloud.storage.BlobInfo>
-
protocol
- Specified by:
protocol
in classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.google.cloud.storage.BlobInfo>
-