Search in sources :

Example 16 with SimpleMetadataStore

use of org.springframework.integration.metadata.SimpleMetadataStore in project spring-integration by spring-projects.

the class FtpStreamingInboundChannelAdapterSpec method composeFilters.

@SuppressWarnings("unchecked")
private CompositeFileListFilter<FTPFile> composeFilters(FileListFilter<FTPFile> fileListFilter) {
    CompositeFileListFilter<FTPFile> compositeFileListFilter = new CompositeFileListFilter<>();
    compositeFileListFilter.addFilters(fileListFilter, new FtpPersistentAcceptOnceFileListFilter(new SimpleMetadataStore(), "ftpStreamingMessageSource"));
    return compositeFileListFilter;
}
Also used : CompositeFileListFilter(org.springframework.integration.file.filters.CompositeFileListFilter) FTPFile(org.apache.commons.net.ftp.FTPFile) SimpleMetadataStore(org.springframework.integration.metadata.SimpleMetadataStore) FtpPersistentAcceptOnceFileListFilter(org.springframework.integration.ftp.filters.FtpPersistentAcceptOnceFileListFilter)

Aggregations

SimpleMetadataStore (org.springframework.integration.metadata.SimpleMetadataStore)16 Test (org.junit.Test)10 File (java.io.File)5 BeanFactory (org.springframework.beans.factory.BeanFactory)4 CompositeFileListFilter (org.springframework.integration.file.filters.CompositeFileListFilter)4 LsEntry (com.jcraft.jsch.ChannelSftp.LsEntry)3 FTPFile (org.apache.commons.net.ftp.FTPFile)3 ChannelSftp (com.jcraft.jsch.ChannelSftp)2 SftpATTRS (com.jcraft.jsch.SftpATTRS)2 IOException (java.io.IOException)2 Constructor (java.lang.reflect.Constructor)2 CountDownLatch (java.util.concurrent.CountDownLatch)2 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)2 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)2 FileSystemPersistentAcceptOnceFileListFilter (org.springframework.integration.file.filters.FileSystemPersistentAcceptOnceFileListFilter)2 FtpPersistentAcceptOnceFileListFilter (org.springframework.integration.ftp.filters.FtpPersistentAcceptOnceFileListFilter)2 ConcurrentMetadataStore (org.springframework.integration.metadata.ConcurrentMetadataStore)2 SftpPersistentAcceptOnceFileListFilter (org.springframework.integration.sftp.filters.SftpPersistentAcceptOnceFileListFilter)2 Closeable (java.io.Closeable)1 FileNotFoundException (java.io.FileNotFoundException)1