org.apache.camel.component.file.remote
Class SftpConsumer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultConsumer
org.apache.camel.impl.ScheduledPollConsumer
org.apache.camel.component.file.GenericFileConsumer<T>
org.apache.camel.component.file.remote.RemoteFileConsumer<com.jcraft.jsch.ChannelSftp.LsEntry>
org.apache.camel.component.file.remote.SftpConsumer
- All Implemented Interfaces:
- Runnable, BatchConsumer, Consumer, Service, ShutdownableService, ShutdownAware, SuspendableService
public class SftpConsumer
- extends RemoteFileConsumer<com.jcraft.jsch.ChannelSftp.LsEntry>
Secure FTP consumer
Methods inherited from class org.apache.camel.component.file.GenericFileConsumer |
canPollMoreFiles, deferShutdown, doStart, getPendingExchangesSize, isBatchAllowed, isInProgress, isMatched, isValidFile, poll, processBatch, processExchange, setMaxMessagesPerPoll, setOperations |
Methods inherited from class org.apache.camel.impl.ScheduledPollConsumer |
getDelay, getInitialDelay, getPollStrategy, getTimeUnit, isPollAllowed, isSuspended, isUseFixedDelay, resume, run, setDelay, setInitialDelay, setPollStrategy, setTimeUnit, setUseFixedDelay, suspend |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, start, stop |
SftpConsumer
public SftpConsumer(RemoteFileEndpoint<com.jcraft.jsch.ChannelSftp.LsEntry> endpoint,
Processor processor,
RemoteFileOperations<com.jcraft.jsch.ChannelSftp.LsEntry> operations)
pollDirectory
protected boolean pollDirectory(String fileName,
List<GenericFile<com.jcraft.jsch.ChannelSftp.LsEntry>> fileList)
- Specified by:
pollDirectory
in class GenericFileConsumer<com.jcraft.jsch.ChannelSftp.LsEntry>
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.