public abstract class RemoteFileEndpoint<T>
extends org.apache.camel.component.file.GenericFileEndpoint<T>
allowNullBody, antExclude, antFilter, antFilterCaseSensitive, antInclude, autoCreate, bufferSize, charset, configuration, DEFAULT_IDEMPOTENT_CACHE_SIZE, DEFAULT_IN_PROGRESS_CACHE_SIZE, DEFAULT_STRATEGYFACTORY_CLASS, delete, directoryMustExist, doneFileName, eagerDeleteTargetFile, eagerMaxMessagesPerPoll, exclude, exclusiveReadLockStrategy, fileExist, fileName, filter, filterDirectory, filterFile, flatten, idempotent, idempotentKey, idempotentRepository, include, inProgressRepository, jailStartingDirectory, keepLastModified, localWorkDirectory, log, maxDepth, maxMessagesPerPoll, minDepth, move, moveExisting, moveExistingFileStrategy, moveFailed, noop, onCompletionExceptionHandler, preMove, preSort, processStrategy, readLock, readLockCheckInterval, readLockDeleteOrphanLockFiles, readLockIdempotentReleaseAsync, readLockIdempotentReleaseAsyncPoolSize, readLockIdempotentReleaseDelay, readLockIdempotentReleaseExecutorService, readLockLoggingLevel, readLockMarkerFile, readLockMinAge, readLockMinLength, readLockRemoveOnCommit, readLockRemoveOnRollback, readLockTimeout, recursive, shuffle, sortBy, sorter, startingDirectoryMustExist, tempFileName, tempPrefix
Constructor and Description |
---|
RemoteFileEndpoint() |
RemoteFileEndpoint(String uri,
RemoteFileComponent<T> component,
RemoteFileConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterPropertiesSet()
Validates this endpoint if its configured properly.
|
protected abstract RemoteFileConsumer<T> |
buildConsumer(org.apache.camel.Processor processor)
Remote File Endpoints, impl this method to create a custom consumer specific to their "protocol" etc.
|
protected abstract org.apache.camel.component.file.GenericFileProducer<T> |
buildProducer()
Remote File Endpoints, impl this method to create a custom producer specific to their "protocol" etc.
|
RemoteFileConsumer<T> |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Exchange |
createExchange(org.apache.camel.component.file.GenericFile<T> file) |
org.apache.camel.PollingConsumer |
createPollingConsumer() |
org.apache.camel.component.file.GenericFileProducer<T> |
createProducer() |
abstract RemoteFileOperations<T> |
createRemoteFileOperations()
Creates the operations to be used by the consumer or producer.
|
RemoteFileConfiguration |
getConfiguration() |
char |
getFileSeparator() |
int |
getMaximumReconnectAttempts() |
protected Map<String,Object> |
getParamsAsMap() |
long |
getReconnectDelay() |
boolean |
isAbsolute(String name) |
boolean |
isDisconnect() |
boolean |
isDisconnectOnBatchComplete() |
boolean |
isDownload() |
boolean |
isFastExistsCheck() |
String |
remoteServerInformation()
Returns human readable server information for logging purpose
|
void |
setDisconnect(boolean disconnect)
Whether or not to disconnect from remote FTP server right after use.
|
void |
setDisconnectOnBatchComplete(boolean disconnectOnBatchComplete)
Whether or not to disconnect from remote FTP server right after a Batch upload is complete.
|
void |
setDownload(boolean download)
Whether the FTP consumer should download the file.
|
void |
setFastExistsCheck(boolean fastExistsCheck)
If set this option to be true, camel-ftp will use the list file directly to check if the file exists.
|
void |
setMaximumReconnectAttempts(int maximumReconnectAttempts)
Specifies the maximum reconnect attempts Camel performs when it tries to connect to the remote FTP server.
|
void |
setReconnectDelay(long reconnectDelay)
Delay in millis Camel will wait before performing a reconnect attempt.
|
configureExchange, configureMessage, configureMoveOrPreMoveExpression, createDoneFileName, createGenericFileStrategy, doStart, doStop, getAntExclude, getAntFilter, getAntInclude, getBufferSize, getCharset, getDoneFileName, getExchanges, getExclude, getExcludePattern, getExclusiveReadLockStrategy, getFileExist, getFileName, getFilter, getFilterDirectory, getFilterFile, getGeneratedFileName, getIdempotentKey, getIdempotentRepository, getInclude, getIncludePattern, getInProgressRepository, getLocalWorkDirectory, getMaxDepth, getMaxMessagesPerPoll, getMinDepth, getMove, getMoveExisting, getMoveExistingFileStrategy, getMoveFailed, getOnCompletionExceptionHandler, getPreMove, getProcessStrategy, getReadLock, getReadLockCheckInterval, getReadLockIdempotentReleaseAsyncPoolSize, getReadLockIdempotentReleaseExecutorService, getReadLockLoggingLevel, getReadLockMinAge, getReadLockMinLength, getReadLockTimeout, getScheme, getSortBy, getSorter, getTempFileName, getTempPrefix, isAllowNullBody, isAntFilterCaseSensitive, isAutoCreate, isDelete, isDirectoryMustExist, isDoneFile, isEagerDeleteTargetFile, isEagerMaxMessagesPerPoll, isFlatten, isIdempotent, isIdempotentSet, isJailStartingDirectory, isKeepLastModified, isNoop, isPreSort, isReadLockDeleteOrphanLockFiles, isReadLockIdempotentReleaseAsync, isReadLockMarkerFile, isReadLockRemoveOnCommit, isReadLockRemoveOnRollback, isRecursive, isShuffle, isSingleton, isStartingDirectoryMustExist, setAllowNullBody, setAntExclude, setAntFilterCaseSensitive, setAntInclude, setAutoCreate, setBufferSize, setCharset, setConfiguration, setDelete, setDirectoryMustExist, setDoneFileName, setEagerDeleteTargetFile, setEagerMaxMessagesPerPoll, setExclude, setExclusiveReadLockStrategy, setFileExist, setFileName, setFileName, setFilter, setFilterDirectory, setFilterDirectory, setFilterFile, setFilterFile, setFlatten, setIdempotent, setIdempotentKey, setIdempotentKey, setIdempotentRepository, setInclude, setInProgressRepository, setJailStartingDirectory, setKeepLastModified, setLocalWorkDirectory, setMaxDepth, setMaxMessagesPerPoll, setMinDepth, setMove, setMove, setMoveExisting, setMoveExisting, setMoveExistingFileStrategy, setMoveFailed, setMoveFailed, setNoop, setOnCompletionExceptionHandler, setPreMove, setPreMove, setPreSort, setProcessStrategy, setReadLock, setReadLockCheckInterval, setReadLockDeleteOrphanLockFiles, setReadLockIdempotentReleaseAsync, setReadLockIdempotentReleaseAsyncPoolSize, setReadLockIdempotentReleaseDelay, setReadLockIdempotentReleaseExecutorService, setReadLockLoggingLevel, setReadLockMarkerFile, setReadLockMinAge, setReadLockMinLength, setReadLockRemoveOnCommit, setReadLockRemoveOnRollback, setReadLockTimeout, setRecursive, setShuffle, setSortBy, setSortBy, setSortBy, setSorter, setStartingDirectoryMustExist, setTempFileName, setTempFileName, setTempPrefix
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, initConsumerProperties, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay
configureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public RemoteFileEndpoint()
public RemoteFileEndpoint(String uri, RemoteFileComponent<T> component, RemoteFileConfiguration configuration)
public RemoteFileConfiguration getConfiguration()
getConfiguration
in class org.apache.camel.component.file.GenericFileEndpoint<T>
public org.apache.camel.Exchange createExchange(org.apache.camel.component.file.GenericFile<T> file)
createExchange
in class org.apache.camel.component.file.GenericFileEndpoint<T>
public org.apache.camel.component.file.GenericFileProducer<T> createProducer() throws Exception
public RemoteFileConsumer<T> createConsumer(org.apache.camel.Processor processor) throws Exception
public org.apache.camel.PollingConsumer createPollingConsumer() throws Exception
createPollingConsumer
in interface org.apache.camel.Endpoint
createPollingConsumer
in class org.apache.camel.impl.DefaultEndpoint
Exception
protected void afterPropertiesSet() throws Exception
Exception
- is thrown if endpoint is invalid configured for its mandatory optionsprotected Map<String,Object> getParamsAsMap()
getParamsAsMap
in class org.apache.camel.component.file.GenericFileEndpoint<T>
protected abstract RemoteFileConsumer<T> buildConsumer(org.apache.camel.Processor processor)
processor
- the processorprotected abstract org.apache.camel.component.file.GenericFileProducer<T> buildProducer()
public abstract RemoteFileOperations<T> createRemoteFileOperations() throws Exception
Exception
- is thrown if error creating operations.public String remoteServerInformation()
public char getFileSeparator()
getFileSeparator
in class org.apache.camel.component.file.GenericFileEndpoint<T>
public boolean isAbsolute(String name)
isAbsolute
in class org.apache.camel.component.file.GenericFileEndpoint<T>
public int getMaximumReconnectAttempts()
public void setMaximumReconnectAttempts(int maximumReconnectAttempts)
public long getReconnectDelay()
public void setReconnectDelay(long reconnectDelay)
public boolean isDisconnect()
public void setDisconnect(boolean disconnect)
public boolean isDisconnectOnBatchComplete()
public void setDisconnectOnBatchComplete(boolean disconnectOnBatchComplete)
public boolean isFastExistsCheck()
public void setFastExistsCheck(boolean fastExistsCheck)
public boolean isDownload()
public void setDownload(boolean download)
Apache Camel