org.apache.camel.component.file.remote
Class RemoteFileConsumer<T>
java.lang.Object
org.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<T>
- All Implemented Interfaces:
- Runnable, org.apache.camel.BatchConsumer, org.apache.camel.Consumer, org.apache.camel.PollingConsumerPollingStrategy, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.ShutdownAware, org.apache.camel.spi.ShutdownPrepared, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
- Direct Known Subclasses:
- FtpConsumer, SftpConsumer
public abstract class RemoteFileConsumer<T>
- extends org.apache.camel.component.file.GenericFileConsumer<T>
Base class for remote file consumers.
Field Summary |
protected boolean |
loggedIn
|
Fields inherited from class org.apache.camel.component.file.GenericFileConsumer |
customProcessor, eagerLimitMaxMessagesPerPoll, endpoint, fileExpressionResult, log, operations, pendingExchanges, 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 |
Methods inherited from class org.apache.camel.component.file.GenericFileConsumer |
canPollMoreFiles, customProcessExchange, doStart, getCustomProcessor, isEagerLimitMaxMessagesPerPoll, isInProgress, isMatched, isValidFile, poll, pollDirectory, processBatch, removeExcessiveInProgressFiles, setCustomProcessor, setEagerLimitMaxMessagesPerPoll, setOperations |
Methods inherited from class org.apache.camel.impl.ScheduledBatchPollingConsumer |
deferShutdown, getMaxMessagesPerPoll, getPendingExchangesSize, isBatchAllowed, prepareShutdown, setMaxMessagesPerPoll |
Methods inherited from class org.apache.camel.impl.ScheduledPollConsumer |
afterPoll, beforePoll, doShutdown, doSuspend, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getTimeUnit, isPollAllowed, isPolling, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, onInit, processEmptyMessage, run, setDelay, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay, startScheduler |
Methods inherited from class org.apache.camel.impl.DefaultConsumer |
getAsyncProcessor, getExceptionHandler, getProcessor, handleException, handleException, setExceptionHandler, toString |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from interface org.apache.camel.Service |
start, stop |
Methods inherited from interface org.apache.camel.SuspendableService |
isSuspended, resume, suspend |
loggedIn
protected boolean loggedIn
RemoteFileConsumer
public RemoteFileConsumer(RemoteFileEndpoint<T> endpoint,
org.apache.camel.Processor processor,
RemoteFileOperations<T> operations)
getEndpoint
public RemoteFileEndpoint<T> getEndpoint()
- Specified by:
getEndpoint
in interface org.apache.camel.Consumer
- Overrides:
getEndpoint
in class org.apache.camel.impl.DefaultConsumer
getOperations
protected RemoteFileOperations<T> getOperations()
prePollCheck
protected boolean prePollCheck()
throws Exception
- Overrides:
prePollCheck
in class org.apache.camel.component.file.GenericFileConsumer<T>
- Throws:
Exception
postPollCheck
protected void postPollCheck()
- Overrides:
postPollCheck
in class org.apache.camel.component.file.GenericFileConsumer<T>
processExchange
protected void processExchange(org.apache.camel.Exchange exchange)
- Overrides:
processExchange
in class org.apache.camel.component.file.GenericFileConsumer<T>
doStop
protected void doStop()
throws Exception
- Overrides:
doStop
in class org.apache.camel.impl.ScheduledPollConsumer
- Throws:
Exception
disconnect
protected void disconnect()
recoverableConnectIfNecessary
protected void recoverableConnectIfNecessary()
throws Exception
- Throws:
Exception
connectIfNecessary
protected void connectIfNecessary()
throws IOException
- Throws:
IOException
remoteServer
protected String remoteServer()
- Returns human readable server information for logging purpose
isMatched
protected boolean isMatched(org.apache.camel.component.file.GenericFile<T> file,
String doneFileName)
- Overrides:
isMatched
in class org.apache.camel.component.file.GenericFileConsumer<T>
Apache CAMEL