|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultConsumer
org.apache.camel.impl.ScheduledPollConsumer
org.apache.camel.impl.ScheduledBatchPollingConsumer
org.apache.camel.component.file.GenericFileConsumer<T>
org.apache.camel.component.file.remote.RemoteFileConsumer<org.apache.commons.net.ftp.FTPFile>
org.apache.camel.component.file.remote.FtpConsumer
public class FtpConsumer
FTP consumer
| Field Summary | |
|---|---|
protected String |
endpointPath
|
| Fields inherited from class org.apache.camel.component.file.remote.RemoteFileConsumer |
|---|
loggedIn |
| Fields inherited from class org.apache.camel.component.file.GenericFileConsumer |
|---|
customProcessor, eagerLimitMaxMessagesPerPoll, endpoint, fileExpressionResult, log, operations, pendingExchanges, prepareOnStartup, shutdownRunningTask |
| Fields inherited from class org.apache.camel.impl.ScheduledBatchPollingConsumer |
|---|
maxMessagesPerPoll |
| Fields inherited from class org.apache.camel.support.ServiceSupport |
|---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
| Constructor Summary | |
|---|---|
FtpConsumer(RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile> endpoint,
org.apache.camel.Processor processor,
RemoteFileOperations<org.apache.commons.net.ftp.FTPFile> fileOperations)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.apache.camel.component.file.remote.RemoteFileConsumer |
|---|
connectIfNecessary, disconnect, doStop, getEndpoint, getOperations, isRetrieveFile, postPollCheck, prePollCheck, processExchange, recoverableConnectIfNecessary, remoteServer |
| Methods inherited from class org.apache.camel.component.file.GenericFileConsumer |
|---|
canPollMoreFiles, customProcessExchange, doStart, getCustomProcessor, isEagerLimitMaxMessagesPerPoll, isInProgress, isMatched, isValidFile, poll, processBatch, removeExcessiveInProgressFiles, setCustomProcessor, setEagerLimitMaxMessagesPerPoll, setOperations |
| Methods inherited from class org.apache.camel.impl.ScheduledBatchPollingConsumer |
|---|
deferShutdown, getMaxMessagesPerPoll, getPendingExchangesSize, isBatchAllowed, prepareShutdown, processEmptyMessage, setMaxMessagesPerPoll |
| Methods inherited from class org.apache.camel.impl.ScheduledPollConsumer |
|---|
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 |
| Methods inherited from class org.apache.camel.impl.DefaultConsumer |
|---|
getAsyncProcessor, getExceptionHandler, getProcessor, handleException, handleException, setExceptionHandler |
| Methods inherited from class org.apache.camel.support.ServiceSupport |
|---|
doResume, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.camel.Service |
|---|
start, stop |
| Methods inherited from interface org.apache.camel.SuspendableService |
|---|
isSuspended, resume, suspend |
| Field Detail |
|---|
protected String endpointPath
| Constructor Detail |
|---|
public FtpConsumer(RemoteFileEndpoint<org.apache.commons.net.ftp.FTPFile> endpoint,
org.apache.camel.Processor processor,
RemoteFileOperations<org.apache.commons.net.ftp.FTPFile> fileOperations)
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||