Package | Description |
---|---|
org.apache.camel.component.file |
The File Component for working with file systems.
|
org.apache.camel.component.file.strategy |
Strategies for the File Component.
|
Modifier and Type | Field and Description |
---|---|
protected Comparator<GenericFile<T>> |
GenericFileEndpoint.sorter |
Modifier and Type | Method and Description |
---|---|
static GenericFile<File> |
FileConsumer.asGenericFile(String endpointPath,
File file,
String charset)
Deprecated.
|
static GenericFile<File> |
FileConsumer.asGenericFile(String endpointPath,
File file,
String charset,
boolean probeContentType)
Creates a new GenericFile
|
GenericFile<T> |
GenericFile.copyFrom(GenericFile<T> source)
Creates a copy based on the source
|
GenericFile<T> |
GenericFileMessage.getGenericFile() |
Modifier and Type | Method and Description |
---|---|
Comparator<GenericFile<T>> |
GenericFileEndpoint.getSorter() |
Modifier and Type | Method and Description |
---|---|
void |
GenericFileProcessStrategy.abort(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file)
Called when a begin is aborted, for example to release any resources which may have
been acquired during the
GenericFileProcessStrategy.begin(GenericFileOperations, GenericFileEndpoint, org.apache.camel.Exchange, GenericFile)
operation. |
boolean |
GenericFileFilter.accept(GenericFile<T> file)
Tests whether or not the specified generic file should be included
|
boolean |
AntPathMatcherGenericFileFilter.accept(GenericFile<T> file) |
boolean |
GenericFileExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange)
Acquires exclusive read lock to the file.
|
boolean |
GenericFileProcessStrategy.begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file)
Called when work is about to begin on this file.
|
void |
GenericFileProcessStrategy.commit(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file)
Releases any file locks and possibly deletes or moves the file after
successful processing
|
void |
GenericFileEndpoint.configureMessage(GenericFile<T> file,
Message message)
Configures the given message with the file which sets the body to the
file object.
|
GenericFile<T> |
GenericFile.copyFrom(GenericFile<T> source)
Creates a copy based on the source
|
void |
GenericFile.copyFromPopulateAdditional(GenericFile<T> source,
GenericFile<T> result)
Copies additional information from the source to the result.
|
void |
GenericFile.copyFromPopulateAdditional(GenericFile<T> source,
GenericFile<T> result)
Copies additional information from the source to the result.
|
Exchange |
FileEndpoint.createExchange(GenericFile<File> file) |
abstract Exchange |
GenericFileEndpoint.createExchange(GenericFile<T> file) |
static InputStream |
GenericFileConverter.genericFileToInputStream(GenericFile<?> file,
Exchange exchange) |
static Serializable |
GenericFileConverter.genericFileToSerializable(GenericFile<?> file,
Exchange exchange) |
static String |
GenericFileConverter.genericFileToString(GenericFile<?> file,
Exchange exchange) |
Object |
FileBinding.getBody(GenericFile<File> file) |
Object |
GenericFileDefaultBinding.getBody(GenericFile<T> file) |
Object |
GenericFileBinding.getBody(GenericFile<T> file)
Gets the body of the file
|
protected boolean |
GenericFileConsumer.isInProgress(GenericFile<T> file)
Deprecated.
no longer in use, use
GenericFileEndpoint.getInProgressRepository() instead. |
protected boolean |
FileConsumer.isMatched(GenericFile<File> file,
String doneFileName,
List<File> files) |
protected boolean |
GenericFileConsumer.isMatched(GenericFile<T> file,
boolean isDirectory,
List<T> files)
Strategy to perform file matching based on endpoint configuration.
|
protected abstract boolean |
GenericFileConsumer.isMatched(GenericFile<T> file,
String doneFileName,
List<T> files)
Strategy to perform file matching based on endpoint configuration in terms of done file name.
|
protected boolean |
GenericFileConsumer.isValidFile(GenericFile<T> file,
boolean isDirectory,
List<T> files)
Strategy for validating if the given remote file should be included or not
|
void |
GenericFileDefaultBinding.loadContent(Exchange exchange,
GenericFile<?> file) |
void |
GenericFileBinding.loadContent(Exchange exchange,
GenericFile<?> file)
Ensures the content is loaded from the file into memory
|
void |
FileBinding.loadContent(Exchange exchange,
GenericFile<?> file) |
protected void |
GenericFileOnCompletion.processStrategyCommit(GenericFileProcessStrategy<T> processStrategy,
Exchange exchange,
GenericFile<T> file)
Strategy when the file was processed and a commit should be executed.
|
protected void |
GenericFileOnCompletion.processStrategyRollback(GenericFileProcessStrategy<T> processStrategy,
Exchange exchange,
GenericFile<T> file)
Strategy when the file was not processed and a rollback should be executed.
|
void |
GenericFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange)
Releases the exclusive read lock granted by the acquireExclusiveReadLock method due an abort operation (acquireExclusiveReadLock returned false).
|
void |
GenericFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange)
Releases the exclusive read lock granted by the acquireExclusiveReadLock method due a commit operation (Exchange processing succeeded)
|
void |
GenericFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange)
Releases the exclusive read lock granted by the acquireExclusiveReadLock method due a rollback operation (Exchange processing failed)
|
void |
GenericFileProcessStrategy.rollback(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file)
Releases any file locks and possibly deletes or moves the file after
unsuccessful processing
|
void |
FileBinding.setBody(GenericFile<File> file,
Object body) |
void |
GenericFileDefaultBinding.setBody(GenericFile<T> file,
Object body) |
void |
GenericFileBinding.setBody(GenericFile<T> file,
Object body)
Sets the body from the given file
|
void |
GenericFileMessage.setGenericFile(GenericFile<T> file) |
protected void |
FileConsumer.updateFileHeaders(GenericFile<File> file,
Message message) |
protected abstract void |
GenericFileConsumer.updateFileHeaders(GenericFile<T> file,
Message message)
Updates the information on
Message after we have acquired read-lock and
can begin process the file. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
FileConsumer.pollDirectory(String fileName,
List<GenericFile<File>> fileList,
int depth) |
protected abstract boolean |
GenericFileConsumer.pollDirectory(String fileName,
List<GenericFile<T>> fileList,
int depth)
Polls the given directory for files to process
|
protected void |
GenericFileConsumer.removeExcessiveInProgressFiles(List<GenericFile<T>> files)
Drain any in progress files as we are done with the files
|
void |
GenericFileEndpoint.setSorter(Comparator<GenericFile<T>> sorter)
Pluggable sorter as a java.util.Comparator
|
Constructor and Description |
---|
GenericFileMessage(CamelContext camelContext,
GenericFile<T> file) |
GenericFileMessage(GenericFile<T> file)
Deprecated.
|
GenericFileOnCompletion(GenericFileEndpoint<T> endpoint,
GenericFileOperations<T> operations,
GenericFile<T> file,
String absoluteFileName) |
Modifier and Type | Method and Description |
---|---|
GenericFile<T> |
GenericFileRenamer.renameFile(Exchange exchange,
GenericFile<T> file)
Renames the given file
|
GenericFile<T> |
GenericFileExpressionRenamer.renameFile(Exchange exchange,
GenericFile<T> file) |
protected GenericFile<T> |
GenericFileProcessStrategySupport.renameFile(GenericFileOperations<T> operations,
GenericFile<T> from,
GenericFile<T> to) |
Modifier and Type | Method and Description |
---|---|
void |
GenericFileProcessStrategySupport.abort(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
boolean |
MarkerFileExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
FileRenameExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
FileLockExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
FileIdempotentRepositoryReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
FileIdempotentRenameRepositoryReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
FileIdempotentChangedRepositoryReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
FileChangedExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
boolean |
GenericFileRenameExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange) |
protected String |
FileIdempotentRepositoryReadLockStrategy.asKey(GenericFile<File> file) |
protected String |
FileIdempotentRenameRepositoryReadLockStrategy.asKey(GenericFile<File> file) |
protected String |
FileIdempotentChangedRepositoryReadLockStrategy.asKey(GenericFile<File> file) |
boolean |
GenericFileRenameProcessStrategy.begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
boolean |
GenericFileProcessStrategySupport.begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
boolean |
GenericFileDeleteProcessStrategy.begin(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
void |
GenericFileRenameProcessStrategy.commit(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
void |
GenericFileProcessStrategySupport.commit(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
void |
GenericFileDeleteProcessStrategy.commit(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
protected void |
MarkerFileExclusiveReadLockStrategy.doReleaseExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
protected void |
FileLockExclusiveReadLockStrategy.doReleaseExclusiveReadLock(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
MarkerFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentRepositoryReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentRenameRepositoryReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentChangedRepositoryReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
GenericFileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange) |
void |
MarkerFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentRepositoryReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentRenameRepositoryReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentChangedRepositoryReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
GenericFileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange) |
void |
MarkerFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentRepositoryReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentRenameRepositoryReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
FileIdempotentChangedRepositoryReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations,
GenericFile<File> file,
Exchange exchange) |
void |
GenericFileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<T> operations,
GenericFile<T> file,
Exchange exchange) |
GenericFile<T> |
GenericFileRenamer.renameFile(Exchange exchange,
GenericFile<T> file)
Renames the given file
|
GenericFile<T> |
GenericFileExpressionRenamer.renameFile(Exchange exchange,
GenericFile<T> file) |
protected GenericFile<T> |
GenericFileProcessStrategySupport.renameFile(GenericFileOperations<T> operations,
GenericFile<T> from,
GenericFile<T> to) |
protected GenericFile<T> |
GenericFileProcessStrategySupport.renameFile(GenericFileOperations<T> operations,
GenericFile<T> from,
GenericFile<T> to) |
void |
GenericFileRenameProcessStrategy.rollback(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
void |
GenericFileProcessStrategySupport.rollback(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
void |
GenericFileDeleteProcessStrategy.rollback(GenericFileOperations<T> operations,
GenericFileEndpoint<T> endpoint,
Exchange exchange,
GenericFile<T> file) |
Apache Camel