Class SftpInboundFileSynchronizer
java.lang.Object
org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizer<org.apache.sshd.sftp.client.SftpClient.DirEntry>
org.springframework.integration.sftp.inbound.SftpInboundFileSynchronizer
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Aware,- BeanFactoryAware,- BeanNameAware,- InitializingBean,- InboundFileSynchronizer
public class SftpInboundFileSynchronizer
extends AbstractInboundFileSynchronizer<org.apache.sshd.sftp.client.SftpClient.DirEntry>
Handles the synchronization between a remote SFTP directory and a local mount.
- Since:
- 2.0
- Author:
- Josh Long, Oleg Zhurakousky, Mark Fisher, Artem Bilan
- 
Field SummaryFields inherited from class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizerEXPRESSION_PARSER, logger
- 
Constructor SummaryConstructorsConstructorDescriptionSftpInboundFileSynchronizer(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory) Create a synchronizer with theSessionFactoryused to acquireSessioninstances.
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringgetFilename(org.apache.sshd.sftp.client.SftpClient.DirEntry file) protected longgetModified(org.apache.sshd.sftp.client.SftpClient.DirEntry file) protected booleanisFile(org.apache.sshd.sftp.client.SftpClient.DirEntry file) protected Stringprotocol()Return the protocol this synchronizer works with.Methods inherited from class org.springframework.integration.file.remote.synchronizer.AbstractInboundFileSynchronizerafterPropertiesSet, 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- 
SftpInboundFileSynchronizerpublic SftpInboundFileSynchronizer(SessionFactory<org.apache.sshd.sftp.client.SftpClient.DirEntry> sessionFactory) Create a synchronizer with theSessionFactoryused to acquireSessioninstances.- Parameters:
- sessionFactory- The session factory.
 
 
- 
- 
Method Details- 
isFileprotected boolean isFile(org.apache.sshd.sftp.client.SftpClient.DirEntry file) - Specified by:
- isFilein class- AbstractInboundFileSynchronizer<org.apache.sshd.sftp.client.SftpClient.DirEntry>
 
- 
getFilename- Specified by:
- getFilenamein class- AbstractInboundFileSynchronizer<org.apache.sshd.sftp.client.SftpClient.DirEntry>
 
- 
getModifiedprotected long getModified(org.apache.sshd.sftp.client.SftpClient.DirEntry file) - Specified by:
- getModifiedin class- AbstractInboundFileSynchronizer<org.apache.sshd.sftp.client.SftpClient.DirEntry>
 
- 
protocolDescription copied from class:AbstractInboundFileSynchronizerReturn the protocol this synchronizer works with.- Specified by:
- protocolin class- AbstractInboundFileSynchronizer<org.apache.sshd.sftp.client.SftpClient.DirEntry>
- Returns:
- the protocol this synchronizer works with.
 
 
-