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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetFilename(com.google.cloud.storage.BlobInfo file) protected longgetModified(com.google.cloud.storage.BlobInfo file) protected booleanisFile(com.google.cloud.storage.BlobInfo file) protected Stringprotocol()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:
isFilein classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.google.cloud.storage.BlobInfo>
-
getFilename
- Specified by:
getFilenamein classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.google.cloud.storage.BlobInfo>
-
getModified
protected long getModified(com.google.cloud.storage.BlobInfo file) - Specified by:
getModifiedin classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.google.cloud.storage.BlobInfo>
-
protocol
- Specified by:
protocolin classorg.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<com.google.cloud.storage.BlobInfo>
-