org.springframework.integration.sftp.impl
Class SftpInboundRemoteFileSystemSynchronizer
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.file.AbstractInboundRemoteFileSystemSychronizer<com.jcraft.jsch.ChannelSftp.LsEntry>
org.springframework.integration.sftp.impl.SftpInboundRemoteFileSystemSynchronizer
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent
public class SftpInboundRemoteFileSystemSynchronizer
- extends AbstractInboundRemoteFileSystemSychronizer<com.jcraft.jsch.ChannelSftp.LsEntry>
This handles the synchronization between a remote SFTP endpoint and a local mount
- Author:
- Josh Long
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString |
SftpInboundRemoteFileSystemSynchronizer
public SftpInboundRemoteFileSystemSynchronizer()
setRemotePath
public void setRemotePath(String remotePath)
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(SftpSessionPool clientPool)
syncRemoteToLocalFileSystem
protected void syncRemoteToLocalFileSystem()
throws Exception
- 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<com.jcraft.jsch.ChannelSftp.LsEntry>
- Throws:
Exception
- thrown if anything goes wrong
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<com.jcraft.jsch.ChannelSftp.LsEntry>
- Returns:
- a
Trigger
implementation (likely,
PeriodicTrigger
)
Copyright © 2010. All Rights Reserved.