public class FtpConsumer extends RemoteFileConsumer<org.apache.commons.net.ftp.FTPFile>
Modifier and Type | Field and Description |
---|---|
protected String |
endpointPath |
loggedIn, loggedInWarning
Constructor and Description |
---|
FtpConsumer(RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile> endpoint,
org.apache.camel.Processor processor,
RemoteFileOperations<org.apache.commons.net.ftp.FTPFile> fileOperations) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doPollDirectory(String absolutePath,
String dirName,
List<org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile>> fileList,
int depth) |
protected boolean |
isMatched(org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> file,
String doneFileName,
List<org.apache.commons.net.ftp.FTPFile> files) |
protected boolean |
pollDirectory(String fileName,
List<org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile>> fileList,
int depth) |
protected boolean |
pollSubDirectory(String absolutePath,
String dirName,
List<org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile>> fileList,
int depth) |
String |
toString() |
connectIfNecessary, disconnect, doStop, getEndpoint, getOperations, isRetrieveFile, postPollCheck, prePollCheck, processExchange, recoverableConnectIfNecessary, remoteServer
canPollMoreFiles, customProcessExchange, doStart, getCustomProcessor, isEagerLimitMaxMessagesPerPoll, isInProgress, isMatched, isValidFile, poll, processBatch, removeExcessiveInProgressFiles, setCustomProcessor, setEagerLimitMaxMessagesPerPoll, setOperations
deferShutdown, getMaxMessagesPerPoll, getPendingExchangesSize, isBatchAllowed, prepareShutdown, processEmptyMessage, setMaxMessagesPerPoll
afterPoll, beforePoll, doShutdown, doSuspend, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getTimeUnit, isGreedy, isPollAllowed, isPolling, isSchedulerStarted, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, onInit, run, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay, startScheduler
getAsyncProcessor, getExceptionHandler, getProcessor, handleException, handleException, setExceptionHandler
doResume, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
protected String endpointPath
public FtpConsumer(RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile> endpoint, org.apache.camel.Processor processor, RemoteFileOperations<org.apache.commons.net.ftp.FTPFile> fileOperations)
protected boolean pollDirectory(String fileName, List<org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile>> fileList, int depth)
pollDirectory
in class org.apache.camel.component.file.GenericFileConsumer<org.apache.commons.net.ftp.FTPFile>
protected boolean pollSubDirectory(String absolutePath, String dirName, List<org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile>> fileList, int depth)
protected boolean doPollDirectory(String absolutePath, String dirName, List<org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile>> fileList, int depth)
protected boolean isMatched(org.apache.camel.component.file.GenericFile<org.apache.commons.net.ftp.FTPFile> file, String doneFileName, List<org.apache.commons.net.ftp.FTPFile> files)
isMatched
in class org.apache.camel.component.file.GenericFileConsumer<org.apache.commons.net.ftp.FTPFile>
public String toString()
toString
in class org.apache.camel.impl.DefaultConsumer
Apache Camel