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, BatchConsumer, Consumer, Service, ShutdownAware, SuspendableService
- Direct Known Subclasses:
- FtpConsumer, SftpConsumer
public abstract class RemoteFileConsumer<T>
- extends GenericFileConsumer<T>
Base class for remote file consumers.
Field Summary |
protected boolean |
loggedIn
|
Methods inherited from class org.apache.camel.component.file.GenericFileConsumer |
deferShutdown, doStart, getPendingExchangesSize, isBatchAllowed, isInProgress, isMatched, isValidFile, poll, pollDirectory, processBatch, processExchange, setMaxMessagesPerPoll |
Methods inherited from class org.apache.camel.impl.ScheduledPollConsumer |
getDelay, getInitialDelay, getPollStrategy, getTimeUnit, isPollAllowed, isSuspended, isUseFixedDelay, resume, run, setDelay, setInitialDelay, setPollStrategy, setTimeUnit, setUseFixedDelay, suspend |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
loggedIn
protected boolean loggedIn
RemoteFileConsumer
public RemoteFileConsumer(RemoteFileEndpoint<T> endpoint,
Processor processor,
RemoteFileOperations<T> operations)
getEndpoint
public RemoteFileEndpoint<T> getEndpoint()
- Specified by:
getEndpoint
in interface Consumer
- Overrides:
getEndpoint
in class DefaultConsumer
getOperations
protected RemoteFileOperations getOperations()
prePollCheck
protected boolean prePollCheck()
throws Exception
- Overrides:
prePollCheck
in class GenericFileConsumer<T>
- Throws:
Exception
postPollCheck
protected void postPollCheck()
- Overrides:
postPollCheck
in class GenericFileConsumer<T>
doStop
protected void doStop()
throws Exception
- Overrides:
doStop
in class ScheduledPollConsumer
- Throws:
Exception
disconnect
protected void disconnect()
connectIfNecessary
protected void connectIfNecessary()
throws IOException
- Throws:
IOException
remoteServer
protected String remoteServer()
- Returns human readable server information for logging purpose
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.