public class SftpConsumer extends RemoteFileConsumer<SftpRemoteFile>
loggedIn, loggedInWarning
customProcessor, eagerLimitMaxMessagesPerPoll, endpoint, fileExpressionResult, operations, pendingExchanges, prepareOnStartup, processStrategy, shutdownRunningTask
Constructor and Description |
---|
SftpConsumer(RemoteFileEndpoint<SftpRemoteFile> endpoint,
org.apache.camel.Processor processor,
RemoteFileOperations<SftpRemoteFile> operations,
org.apache.camel.component.file.GenericFileProcessStrategy<SftpRemoteFile> processStrategy) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doPollDirectory(String absolutePath,
String dirName,
List<org.apache.camel.component.file.GenericFile<SftpRemoteFile>> fileList,
int depth)
Poll directory given by dirName or absolutePath
|
protected void |
doStart() |
protected boolean |
ignoreCannotRetrieveFile(String name,
org.apache.camel.Exchange exchange,
Exception cause) |
protected boolean |
isMatched(org.apache.camel.component.file.GenericFile<SftpRemoteFile> file,
String doneFileName,
List<SftpRemoteFile> files) |
protected boolean |
pollDirectory(String fileName,
List<org.apache.camel.component.file.GenericFile<SftpRemoteFile>> fileList,
int depth) |
protected boolean |
pollSubDirectory(String absolutePath,
String dirName,
List<org.apache.camel.component.file.GenericFile<SftpRemoteFile>> fileList,
int depth) |
String |
toString() |
protected void |
updateFileHeaders(org.apache.camel.component.file.GenericFile<SftpRemoteFile> file,
org.apache.camel.Message message) |
connectIfNecessary, disconnect, doSafePollSubDirectory, doStop, forceDisconnect, getEndpoint, getOperations, isRetrieveFile, postPollCheck, prePollCheck, processExchange, remoteServer
afterPoll, beforePoll, canPollMoreFiles, customProcessExchange, evaluateFileExpression, getCustomProcessor, isEagerLimitMaxMessagesPerPoll, isMatched, isValidFile, onInit, poll, processBatch, removeExcessiveInProgressFiles, removeExcessiveInProgressFiles, setCustomProcessor, setEagerLimitMaxMessagesPerPoll, setOperations
deferShutdown, getMaxMessagesPerPoll, getPendingExchangesSize, isBatchAllowed, prepareShutdown, processEmptyMessage, setMaxMessagesPerPoll
doInit, doShutdown, doSuspend, getBackoffCounter, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isPollAllowed, isPolling, isSchedulerStarted, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, run, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay, startScheduler
createUoW, doneUoW, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute
build, doBuild, doResume, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public SftpConsumer(RemoteFileEndpoint<SftpRemoteFile> endpoint, org.apache.camel.Processor processor, RemoteFileOperations<SftpRemoteFile> operations, org.apache.camel.component.file.GenericFileProcessStrategy<SftpRemoteFile> processStrategy)
protected void doStart() throws Exception
doStart
in class org.apache.camel.component.file.GenericFileConsumer<SftpRemoteFile>
Exception
protected boolean pollDirectory(String fileName, List<org.apache.camel.component.file.GenericFile<SftpRemoteFile>> fileList, int depth)
pollDirectory
in class org.apache.camel.component.file.GenericFileConsumer<SftpRemoteFile>
protected boolean pollSubDirectory(String absolutePath, String dirName, List<org.apache.camel.component.file.GenericFile<SftpRemoteFile>> fileList, int depth)
protected boolean doPollDirectory(String absolutePath, String dirName, List<org.apache.camel.component.file.GenericFile<SftpRemoteFile>> fileList, int depth)
RemoteFileConsumer
doPollDirectory
in class RemoteFileConsumer<SftpRemoteFile>
absolutePath
- The path of the directory to polldirName
- The name of the directory to pollfileList
- current list of files gathereddepth
- the current depth of the directoryprotected boolean isMatched(org.apache.camel.component.file.GenericFile<SftpRemoteFile> file, String doneFileName, List<SftpRemoteFile> files)
isMatched
in class org.apache.camel.component.file.GenericFileConsumer<SftpRemoteFile>
protected boolean ignoreCannotRetrieveFile(String name, org.apache.camel.Exchange exchange, Exception cause)
ignoreCannotRetrieveFile
in class org.apache.camel.component.file.GenericFileConsumer<SftpRemoteFile>
protected void updateFileHeaders(org.apache.camel.component.file.GenericFile<SftpRemoteFile> file, org.apache.camel.Message message)
updateFileHeaders
in class org.apache.camel.component.file.GenericFileConsumer<SftpRemoteFile>
public String toString()
toString
in class org.apache.camel.support.DefaultConsumer
Apache Camel