Uses of Class
org.apache.camel.component.file.GenericFile
-
Packages that use GenericFile Package Description org.apache.camel.component.file The File Component for working with file systems.org.apache.camel.component.file.consumer org.apache.camel.component.file.consumer.adapters org.apache.camel.component.file.strategy Strategies for the File Component. -
-
Uses of GenericFile in org.apache.camel.component.file
Fields in org.apache.camel.component.file with type parameters of type GenericFile Modifier and Type Field Description protected Comparator<GenericFile<T>>
GenericFileEndpoint. sorter
Methods in org.apache.camel.component.file that return GenericFile Modifier and Type Method Description static GenericFile<File>
FileConsumer. asGenericFile(String endpointPath, File file, String charset, boolean probeContentType)
Creates a new GenericFilebased on the given file. GenericFile<T>
GenericFileMessage. getGenericFile()
GenericFile<File>
FileOperations. newGenericFile()
GenericFile<T>
GenericFileOperations. newGenericFile()
Creates a new instance ofGenericFile
Methods in org.apache.camel.component.file that return types with arguments of type GenericFile Modifier and Type Method Description Comparator<GenericFile<T>>
GenericFileEndpoint. getSorter()
Methods in org.apache.camel.component.file with parameters of type GenericFile Modifier and Type Method Description void
GenericFileProcessStrategy. abort(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)
Called when a begin is aborted, for example to release any resources which may have been acquired during theGenericFileProcessStrategy.begin(GenericFileOperations, GenericFileEndpoint, org.apache.camel.Exchange, GenericFile)
operation.boolean
AntPathMatcherGenericFileFilter. accept(GenericFile<T> file)
boolean
GenericFileFilter. accept(GenericFile<T> file)
Tests whether or not the specified generic file should be includedboolean
GenericFileExclusiveReadLockStrategy. acquireExclusiveReadLock(GenericFileOperations<T> operations, GenericFile<T> file, org.apache.camel.Exchange exchange)
Acquires exclusive read lock to the file.static String
GenericFileHelper. asExclusiveReadLockKey(GenericFile file, String key)
boolean
GenericFileProcessStrategy. begin(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)
Called when work is about to begin on this file.void
GenericFileProcessStrategy. commit(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)
Releases any file locks and possibly deletes or moves the file after successful processingvoid
GenericFileEndpoint. configureMessage(GenericFile<T> file, org.apache.camel.Message message)
Configures the given message with the file which sets the body to the file object.void
GenericFile. copyFrom(GenericFile source, GenericFile result)
Creates a copy based on the sourcevoid
GenericFile. copyFromPopulateAdditional(GenericFile<T> source, GenericFile<T> result)
Copies additional information from the source to the result.protected org.apache.camel.Exchange
FileConsumer. createExchange(GenericFile<File> file)
org.apache.camel.Exchange
FileEndpoint. createExchange(GenericFile<File> file)
protected abstract org.apache.camel.Exchange
GenericFileConsumer. createExchange(GenericFile<T> file)
Creates the exchange from the polled fileabstract org.apache.camel.Exchange
GenericFileEndpoint. createExchange(GenericFile<T> file)
static InputStream
GenericFileConverter. genericFileToInputStream(GenericFile<?> file, org.apache.camel.Exchange exchange)
static Reader
GenericFileConverter. genericFileToReader(GenericFile<?> file, org.apache.camel.Exchange exchange)
static Serializable
GenericFileConverter. genericFileToSerializable(GenericFile<?> file, org.apache.camel.Exchange exchange)
static String
GenericFileConverter. genericFileToString(GenericFile<?> file, org.apache.camel.Exchange exchange)
Object
FileBinding. getBody(GenericFile<File> file)
Object
GenericFileBinding. getBody(GenericFile<T> file)
Gets the body of the fileObject
GenericFileDefaultBinding. getBody(GenericFile<T> file)
protected boolean
FileConsumer. isMatched(GenericFile<File> file, String doneFileName, File[] files)
protected boolean
GenericFileConsumer. isMatched(GenericFile<T> file, boolean isDirectory, T[] files)
Strategy to perform file matching based on endpoint configuration.protected abstract boolean
GenericFileConsumer. isMatched(GenericFile<T> file, String doneFileName, 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, T[] files)
Strategy for validating if the given remote file should be included or notvoid
FileBinding. loadContent(org.apache.camel.Exchange exchange, GenericFile<?> file)
void
GenericFileBinding. loadContent(org.apache.camel.Exchange exchange, GenericFile<?> file)
Ensures the content is loaded from the file into memoryvoid
GenericFileDefaultBinding. loadContent(org.apache.camel.Exchange exchange, GenericFile<?> file)
protected void
GenericFileOnCompletion. processStrategyCommit(GenericFileProcessStrategy<T> processStrategy, org.apache.camel.Exchange exchange, GenericFile<T> file)
Strategy when the file was processed and a commit should be executed.protected void
GenericFileOnCompletion. processStrategyRollback(GenericFileProcessStrategy<T> processStrategy, org.apache.camel.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, org.apache.camel.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, org.apache.camel.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, org.apache.camel.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, org.apache.camel.Exchange exchange, GenericFile<T> file)
Releases any file locks and possibly deletes or moves the file after unsuccessful processingvoid
FileBinding. setBody(GenericFile<File> file, Object body)
void
GenericFileBinding. setBody(GenericFile<T> file, Object body)
Sets the body from the given filevoid
GenericFileDefaultBinding. setBody(GenericFile<T> file, Object body)
void
GenericFileMessage. setGenericFile(GenericFile<T> file)
protected void
FileConsumer. updateFileHeaders(GenericFile<File> file, org.apache.camel.Message message)
protected abstract void
GenericFileConsumer. updateFileHeaders(GenericFile<T> file, org.apache.camel.Message message)
Updates the information onMessage
after we have acquired read-lock and can begin process the file.Method parameters in org.apache.camel.component.file with type arguments of type GenericFile Modifier and Type Method 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 processprotected void
GenericFileConsumer. removeExcessiveInProgressFiles(List<GenericFile<T>> files)
Drain any in progress files as we are done with the filesvoid
GenericFileEndpoint. setSorter(Comparator<GenericFile<T>> sorter)
Pluggable sorter as a java.util.Comparatorclass. Constructors in org.apache.camel.component.file with parameters of type GenericFile Constructor Description GenericFileMessage(org.apache.camel.CamelContext camelContext, GenericFile<T> file)
GenericFileMessage(org.apache.camel.Exchange exchange, GenericFile<T> file)
GenericFileOnCompletion(GenericFileEndpoint<T> endpoint, GenericFileOperations<T> operations, GenericFileProcessStrategy processStrategy, GenericFile<T> file, String absoluteFileName)
-
Uses of GenericFile in org.apache.camel.component.file.consumer
Methods in org.apache.camel.component.file.consumer with parameters of type GenericFile Modifier and Type Method Description default void
FileOffsetResumeAdapter. setResumePayload(GenericFile<File> genericFile)
Sets the resume payload used for the adapter -
Uses of GenericFile in org.apache.camel.component.file.consumer.adapters
Methods in org.apache.camel.component.file.consumer.adapters with parameters of type GenericFile Modifier and Type Method Description void
FileResumeAdapterDelegate. setResumePayload(GenericFile<File> genericFile)
-
Uses of GenericFile in org.apache.camel.component.file.strategy
Methods in org.apache.camel.component.file.strategy that return GenericFile Modifier and Type Method Description GenericFile<T>
GenericFileExpressionRenamer. renameFile(GenericFileOperations<T> operations, org.apache.camel.Exchange exchange, GenericFile<T> file)
protected GenericFile<T>
GenericFileProcessStrategySupport. renameFile(GenericFileOperations<T> operations, GenericFile<T> from, GenericFile<T> to)
GenericFile<T>
GenericFileRenamer. renameFile(GenericFileOperations<T> operations, org.apache.camel.Exchange exchange, GenericFile<T> file)
Renames the given fileMethods in org.apache.camel.component.file.strategy with parameters of type GenericFile Modifier and Type Method Description void
GenericFileProcessStrategySupport. abort(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)
boolean
FileChangedExclusiveReadLockStrategy. acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
boolean
FileIdempotentChangedRepositoryReadLockStrategy. acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
boolean
FileIdempotentRenameRepositoryReadLockStrategy. acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
boolean
FileIdempotentRepositoryReadLockStrategy. acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
boolean
FileLockExclusiveReadLockStrategy. acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
boolean
FileRenameExclusiveReadLockStrategy. acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
boolean
GenericFileRenameExclusiveReadLockStrategy. acquireExclusiveReadLock(GenericFileOperations<T> operations, GenericFile<T> file, org.apache.camel.Exchange exchange)
boolean
MarkerFileExclusiveReadLockStrategy. acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
protected String
FileIdempotentChangedRepositoryReadLockStrategy. asKey(GenericFile<File> file)
protected String
FileIdempotentRenameRepositoryReadLockStrategy. asKey(GenericFile<File> file)
protected String
FileIdempotentRepositoryReadLockStrategy. asKey(GenericFile<File> file)
boolean
GenericFileDeleteProcessStrategy. begin(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)
boolean
GenericFileProcessStrategySupport. begin(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)
boolean
GenericFileRenameProcessStrategy. begin(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)
void
GenericFileDeleteProcessStrategy. commit(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)
void
GenericFileProcessStrategySupport. commit(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)
void
GenericFileRenameProcessStrategy. commit(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)
protected void
FileLockExclusiveReadLockStrategy. doReleaseExclusiveReadLock(GenericFile<File> file, org.apache.camel.Exchange exchange)
protected void
MarkerFileExclusiveReadLockStrategy. doReleaseExclusiveReadLock(GenericFile<File> file, org.apache.camel.Exchange exchange)
void
FileIdempotentChangedRepositoryReadLockStrategy. releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
FileIdempotentRenameRepositoryReadLockStrategy. releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
FileIdempotentRepositoryReadLockStrategy. releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
FileRenameExclusiveReadLockStrategy. releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
GenericFileRenameExclusiveReadLockStrategy. releaseExclusiveReadLockOnAbort(GenericFileOperations<T> operations, GenericFile<T> file, org.apache.camel.Exchange exchange)
void
MarkerFileExclusiveReadLockStrategy. releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
FileIdempotentChangedRepositoryReadLockStrategy. releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
FileIdempotentRenameRepositoryReadLockStrategy. releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
FileIdempotentRepositoryReadLockStrategy. releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
FileRenameExclusiveReadLockStrategy. releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
GenericFileRenameExclusiveReadLockStrategy. releaseExclusiveReadLockOnCommit(GenericFileOperations<T> operations, GenericFile<T> file, org.apache.camel.Exchange exchange)
void
MarkerFileExclusiveReadLockStrategy. releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
FileIdempotentChangedRepositoryReadLockStrategy. releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
FileIdempotentRenameRepositoryReadLockStrategy. releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
FileIdempotentRepositoryReadLockStrategy. releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
FileRenameExclusiveReadLockStrategy. releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
void
GenericFileRenameExclusiveReadLockStrategy. releaseExclusiveReadLockOnRollback(GenericFileOperations<T> operations, GenericFile<T> file, org.apache.camel.Exchange exchange)
void
MarkerFileExclusiveReadLockStrategy. releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)
GenericFile<T>
GenericFileExpressionRenamer. renameFile(GenericFileOperations<T> operations, org.apache.camel.Exchange exchange, GenericFile<T> file)
protected GenericFile<T>
GenericFileProcessStrategySupport. renameFile(GenericFileOperations<T> operations, GenericFile<T> from, GenericFile<T> to)
GenericFile<T>
GenericFileRenamer. renameFile(GenericFileOperations<T> operations, org.apache.camel.Exchange exchange, GenericFile<T> file)
Renames the given filevoid
GenericFileDeleteProcessStrategy. rollback(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)
void
GenericFileProcessStrategySupport. rollback(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)
void
GenericFileRenameProcessStrategy. rollback(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)
-