public class S3InboundFileSynchronizer extends org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<S3ObjectSummary>
AbstractInboundFileSynchronizer for Amazon S3.| Constructor and Description |
|---|
S3InboundFileSynchronizer() |
S3InboundFileSynchronizer(AmazonS3 amazonS3) |
S3InboundFileSynchronizer(org.springframework.integration.file.remote.session.SessionFactory<S3ObjectSummary> sessionFactory)
Create a synchronizer with the
SessionFactory used to acquire
Session instances. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
copyFileToLocalDirectory(java.lang.String remoteDirectoryPath,
org.springframework.expression.EvaluationContext localFileEvaluationContext,
S3ObjectSummary remoteFile,
java.io.File localDirectory,
org.springframework.integration.file.remote.session.Session<S3ObjectSummary> session) |
protected java.lang.String |
getFilename(S3ObjectSummary file) |
protected long |
getModified(S3ObjectSummary file) |
protected boolean |
isFile(S3ObjectSummary file) |
protected java.lang.String |
protocol() |
afterPropertiesSet, close, 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, synchronizeToLocalDirectorypublic S3InboundFileSynchronizer()
public S3InboundFileSynchronizer(AmazonS3 amazonS3)
public S3InboundFileSynchronizer(org.springframework.integration.file.remote.session.SessionFactory<S3ObjectSummary> sessionFactory)
SessionFactory used to acquire
Session instances.sessionFactory - The session factory.protected boolean isFile(S3ObjectSummary file)
isFile in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<S3ObjectSummary>protected java.lang.String getFilename(S3ObjectSummary file)
getFilename in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<S3ObjectSummary>protected long getModified(S3ObjectSummary file)
getModified in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<S3ObjectSummary>protected boolean copyFileToLocalDirectory(java.lang.String remoteDirectoryPath,
@Nullable
org.springframework.expression.EvaluationContext localFileEvaluationContext,
S3ObjectSummary remoteFile,
java.io.File localDirectory,
org.springframework.integration.file.remote.session.Session<S3ObjectSummary> session)
throws java.io.IOException
copyFileToLocalDirectory in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<S3ObjectSummary>java.io.IOExceptionprotected java.lang.String protocol()
protocol in class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<S3ObjectSummary>