org.apache.camel.component.file.remote
Class RemoteFileConsumer<T>
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<T>
- All Implemented Interfaces:
- Runnable, org.apache.camel.BatchConsumer, org.apache.camel.Consumer, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.ShutdownAware, 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 |
endpoint, fileExpressionResult, log, maxMessagesPerPoll, operations, pendingExchanges, shutdownRunningTask |
Methods inherited from class org.apache.camel.component.file.GenericFileConsumer |
canPollMoreFiles, deferShutdown, doStart, getPendingExchangesSize, isBatchAllowed, isInProgress, isMatched, isValidFile, poll, pollDirectory, prepareShutdown, processBatch, processExchange, setMaxMessagesPerPoll, setOperations |
Methods inherited from class org.apache.camel.impl.ScheduledPollConsumer |
doSuspend, getDelay, getInitialDelay, getPollStrategy, getTimeUnit, isPollAllowed, isUseFixedDelay, run, setDelay, setInitialDelay, setPollStrategy, setTimeUnit, setUseFixedDelay |
Methods inherited from class org.apache.camel.impl.DefaultConsumer |
getAsyncProcessor, getExceptionHandler, getProcessor, handleException, setExceptionHandler, toString |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, 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 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>
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
Apache CAMEL