org.apache.camel.component.file.remote
Class RemoteFileConsumer<T>

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultConsumer
          extended by org.apache.camel.impl.ScheduledPollConsumer
              extended by org.apache.camel.component.file.GenericFileConsumer<T>
                  extended by org.apache.camel.component.file.remote.RemoteFileConsumer<T>
All Implemented Interfaces:
Runnable, BatchConsumer, Consumer, Service
Direct Known Subclasses:
FtpConsumer, SftpConsumer

public abstract class RemoteFileConsumer<T>
extends 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
 
Constructor Summary
RemoteFileConsumer(RemoteFileEndpoint<T> endpoint, Processor processor, RemoteFileOperations<T> operations)
           
 
Method Summary
protected  void connectIfNecessary()
           
protected  void disconnect()
           
protected  void doStop()
           
protected  boolean prePollCheck()
           
protected  String remoteServer()
          Returns human readable server information for logging purpose
 
Methods inherited from class org.apache.camel.component.file.GenericFileConsumer
isInProgress, isMatched, isValidFile, poll, pollDirectory, processBatch, processExchange, setMaxMessagesPerPoll
 
Methods inherited from class org.apache.camel.impl.ScheduledPollConsumer
doStart, getDelay, getInitialDelay, getPollStrategy, getTimeUnit, isUseFixedDelay, run, setDelay, setInitialDelay, setPollStrategy, setTimeUnit, setUseFixedDelay
 
Methods inherited from class org.apache.camel.impl.DefaultConsumer
getEndpoint, getExceptionHandler, getProcessor, handleException, setExceptionHandler, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop
 
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
 

Field Detail

loggedIn

protected boolean loggedIn
Constructor Detail

RemoteFileConsumer

public RemoteFileConsumer(RemoteFileEndpoint<T> endpoint,
                          Processor processor,
                          RemoteFileOperations<T> operations)
Method Detail

prePollCheck

protected boolean prePollCheck()
                        throws Exception
Overrides:
prePollCheck in class GenericFileConsumer<T>
Throws:
Exception

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



Apache CAMEL