org.springframework.integration.ftp.impl
Class FtpInboundRemoteFileSystemSynchronizer
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.file.AbstractInboundRemoteFileSystemSychronizer<org.apache.commons.net.ftp.FTPFile>
org.springframework.integration.ftp.impl.FtpInboundRemoteFileSystemSynchronizer
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent
public class FtpInboundRemoteFileSystemSynchronizer
- extends AbstractInboundRemoteFileSystemSychronizer<org.apache.commons.net.ftp.FTPFile>
An FTP-adapter implementation of AbstractInboundRemoteFileSystemSychronizer
- Author:
- Josh Long
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString |
clientPool
protected FtpClientPool clientPool
FtpInboundRemoteFileSystemSynchronizer
public FtpInboundRemoteFileSystemSynchronizer()
onInit
protected void onInit()
throws Exception
- Description copied from class:
IntegrationObjectSupport
- Subclasses may implement this for initialization logic.
- Overrides:
onInit
in class IntegrationObjectSupport
- Throws:
Exception
setClientPool
public void setClientPool(FtpClientPool clientPool)
- The
FtpClientPool
that holds references to FTPClient
instances
- Parameters:
clientPool
- the FtpClientPool
copyFileToLocalDirectory
protected boolean copyFileToLocalDirectory(org.apache.commons.net.ftp.FTPClient client,
org.apache.commons.net.ftp.FTPFile ftpFile,
Resource localDirectory)
throws IOException,
FileNotFoundException
- Throws:
IOException
FileNotFoundException
syncRemoteToLocalFileSystem
protected void syncRemoteToLocalFileSystem()
- Description copied from class:
AbstractInboundRemoteFileSystemSychronizer
- This is the callback where we need the implementation to do some specific work
- Specified by:
syncRemoteToLocalFileSystem
in class AbstractInboundRemoteFileSystemSychronizer<org.apache.commons.net.ftp.FTPFile>
getTrigger
protected Trigger getTrigger()
- Description copied from class:
AbstractInboundRemoteFileSystemSychronizer
- Returns a value in millis dictating how frequently the trigger should fire
- Specified by:
getTrigger
in class AbstractInboundRemoteFileSystemSychronizer<org.apache.commons.net.ftp.FTPFile>
- Returns:
- a
Trigger
implementation (likely,
PeriodicTrigger
)
Copyright © 2010. All Rights Reserved.