Class SftpPersistentAcceptOnceFileListFilter
java.lang.Object
org.springframework.integration.file.filters.AbstractFileListFilter<F>
org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter<F>
org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
org.springframework.integration.sftp.filters.SftpPersistentAcceptOnceFileListFilter
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,org.springframework.integration.file.filters.FileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
,org.springframework.integration.file.filters.ResettableFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
,org.springframework.integration.file.filters.ReversibleFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
public class SftpPersistentAcceptOnceFileListFilter
extends org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
Persistent file list filter using the server's file timestamp to detect if we've already
'seen' this file.
- Since:
- 3.0
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SftpPersistentAcceptOnceFileListFilter(org.springframework.integration.metadata.ConcurrentMetadataStore store, java.lang.String prefix)
-
Method Summary
Modifier and Type Method Description protected java.lang.String
fileName(com.jcraft.jsch.ChannelSftp.LsEntry file)
protected boolean
isDirectory(com.jcraft.jsch.ChannelSftp.LsEntry file)
protected long
modified(com.jcraft.jsch.ChannelSftp.LsEntry file)
Methods inherited from class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter
accept, buildKey, close, fileStillExists, flushIfNeeded, isEqual, remove, rollback, setFlushOnUpdate
Methods inherited from class org.springframework.integration.file.filters.AbstractDirectoryAwareFileListFilter
alwaysAccept, isForRecursion, setAlwaysAcceptDirectories, setForRecursion
Methods inherited from class org.springframework.integration.file.filters.AbstractFileListFilter
filterFiles, supportsSingleFileFiltering
-
Constructor Details
-
SftpPersistentAcceptOnceFileListFilter
public SftpPersistentAcceptOnceFileListFilter(org.springframework.integration.metadata.ConcurrentMetadataStore store, java.lang.String prefix)
-
-
Method Details
-
modified
protected long modified(com.jcraft.jsch.ChannelSftp.LsEntry file)- Specified by:
modified
in classorg.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
-
fileName
protected java.lang.String fileName(com.jcraft.jsch.ChannelSftp.LsEntry file)- Specified by:
fileName
in classorg.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
-
isDirectory
protected boolean isDirectory(com.jcraft.jsch.ChannelSftp.LsEntry file)- Overrides:
isDirectory
in classorg.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
-