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:
Closeable
,AutoCloseable
,FileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
,ResettableFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
,ReversibleFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
public class SftpPersistentAcceptOnceFileListFilter
extends 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
- Author:
- Gary Russell, David Liu
-
Field Summary
Fields inherited from class org.springframework.integration.file.filters.AbstractPersistentAcceptOnceFileListFilter
flushableStore, flushOnUpdate, prefix, store
-
Constructor Summary
ConstructorDescriptionSftpPersistentAcceptOnceFileListFilter
(ConcurrentMetadataStore store, String prefix) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
fileName
(com.jcraft.jsch.ChannelSftp.LsEntry file) protected boolean
isDirectory
(com.jcraft.jsch.ChannelSftp.LsEntry file) Subclasses must implement this method to indicate whether the file is a directory or not.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.integration.file.filters.FileListFilter
filterFiles, isForRecursion, supportsSingleFileFiltering
-
Constructor Details
-
SftpPersistentAcceptOnceFileListFilter
-
-
Method Details
-
modified
protected long modified(com.jcraft.jsch.ChannelSftp.LsEntry file) - Specified by:
modified
in classAbstractPersistentAcceptOnceFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
-
fileName
- Specified by:
fileName
in classAbstractPersistentAcceptOnceFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
-
isDirectory
protected boolean isDirectory(com.jcraft.jsch.ChannelSftp.LsEntry file) Description copied from class:AbstractDirectoryAwareFileListFilter
Subclasses must implement this method to indicate whether the file is a directory or not.- Overrides:
isDirectory
in classAbstractPersistentAcceptOnceFileListFilter<com.jcraft.jsch.ChannelSftp.LsEntry>
- Parameters:
file
- the file.- Returns:
- true if it's a directory.
-