Repository: camel
Updated Branches:
  refs/heads/master da06b2828 -> c28973519


Updated doc


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c2897351
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c2897351
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c2897351

Branch: refs/heads/master
Commit: c289735197f51611aa6ec95f0c1698929216a867
Parents: da06b28
Author: Claus Ibsen <davscl...@apache.org>
Authored: Wed Jul 26 10:29:15 2017 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Wed Jul 26 10:29:28 2017 +0200

----------------------------------------------------------------------
 camel-core/src/main/docs/file-component.adoc                       | 2 +-
 .../java/org/apache/camel/component/file/GenericFileEndpoint.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/c2897351/camel-core/src/main/docs/file-component.adoc
----------------------------------------------------------------------
diff --git a/camel-core/src/main/docs/file-component.adoc 
b/camel-core/src/main/docs/file-component.adoc
index 0416228..cdbb8e3 100644
--- a/camel-core/src/main/docs/file-component.adoc
+++ b/camel-core/src/main/docs/file-component.adoc
@@ -136,7 +136,7 @@ with the following path and query parameters:
 | **readLock** (lock) | Used by consumer to only poll the files if it has 
exclusive read-lock on the file (i.e. the file is not in-progress or being 
written). Camel will wait until the file lock is granted. This option provides 
the build in strategies: none - No read lock is in use markerFile - Camel 
creates a marker file (fileName.camelLock) and then holds a lock on it. This 
option is not available for the FTP component changed - Changed is using file 
length/modification timestamp to detect whether the file is currently being 
copied or not. Will at least use 1 sec to determine this so this option cannot 
consume files as fast as the others but can be more reliable as the JDK IO API 
cannot always determine whether a file is currently being used by another 
process. The option readLockCheckInterval can be used to set the check 
frequency. fileLock - is for using java.nio.channels.FileLock. This option is 
not avail for the FTP component. This approach should be avoided when accessing 
a r
 emote file system via a mount/share unless that file system supports 
distributed file locks. rename - rename is for using a try to rename the file 
as a test if we can get exclusive read-lock. idempotent - (only for file 
component) idempotent is for using a idempotentRepository as the read-lock. 
This allows to use read locks that supports clustering if the idempotent 
repository implementation supports that. idempotent-changed - (only for file 
component) idempotent-changed is for using a idempotentRepository and changed 
as the combined read-lock. This allows to use read locks that supports 
clustering if the idempotent repository implementation supports that. 
idempotent-rename - (only for file component) idempotent-rename is for using a 
idempotentRepository and rename as the combined read-lock. This allows to use 
read locks that supports clustering if the idempotent repository implementation 
supports that. Notice: The various read locks is not all suited to work in 
clustered mode where
  concurrent consumers on different nodes is competing for the same files on a 
shared file system. The markerFile using a close to atomic operation to create 
the empty marker file but its not guaranteed to work in a cluster. The fileLock 
may work better but then the file system need to support distributed file locks 
and so on. Using the idempotent read lock can support clustering if the 
idempotent repository supports clustering such as Hazelcast Component or 
Infinispan. |  | String
 | **readLockCheckInterval** (lock) | Interval in millis for the read-lock if 
supported by the read lock. This interval is used for sleeping between attempts 
to acquire the read lock. For example when using the changed read lock you can 
set a higher interval period to cater for slow writes. The default of 1 sec. 
may be too fast if the producer is very slow writing the file. Notice: For FTP 
the default readLockCheckInterval is 5000. The readLockTimeout value must be 
higher than readLockCheckInterval but a rule of thumb is to have a timeout that 
is at least 2 or more times higher than the readLockCheckInterval. This is 
needed to ensure that amble time is allowed for the read lock process to try to 
grab the lock before the timeout was hit. | 1000 | long
 | **readLockDeleteOrphanLock Files** (lock) | Whether or not read lock with 
marker files should upon startup delete any orphan read lock files which may 
have been left on the file system if Camel was not properly shutdown (such as a 
JVM crash). If turning this option to false then any orphaned lock file will 
cause Camel to not attempt to pickup that file this could also be due another 
node is concurrently reading files from the same shared directory. | true | 
boolean
-| **readLockLoggingLevel** (lock) | Logging level used when a read lock could 
not be acquired. By default a WARN is logged. You can change this level for 
example to OFF to not have any logging. This option is only applicable for 
readLock of types: changed fileLock rename. | WARN | LoggingLevel
+| **readLockLoggingLevel** (lock) | Logging level used when a read lock could 
not be acquired. By default a WARN is logged. You can change this level for 
example to OFF to not have any logging. This option is only applicable for 
readLock of types: changed fileLock idempotent idempotent-changed 
idempotent-rename rename. | WARN | LoggingLevel
 | **readLockMarkerFile** (lock) | Whether to use marker file with the changed 
rename or exclusive read lock types. By default a marker file is used as well 
to guard against other processes picking up the same files. This behavior can 
be turned off by setting this option to false. For example if you do not want 
to write marker files to the file systems by the Camel application. | true | 
boolean
 | **readLockMinAge** (lock) | This option applied only for readLock=change. 
This option allows to specify a minimum age the file must be before attempting 
to acquire the read lock. For example use readLockMinAge=300s to require the 
file is at last 5 minutes old. This can speedup the changed read lock as it 
will only attempt to acquire files which are at least that given age. | 0 | long
 | **readLockMinLength** (lock) | This option applied only for 
readLock=changed. This option allows you to configure a minimum file length. By 
default Camel expects the file to contain data and thus the default value is 1. 
You can set this option to zero to allow consuming zero-length files. | 1 | long

http://git-wip-us.apache.org/repos/asf/camel/blob/c2897351/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
 
b/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
index f60b12a..df1d3a4 100644
--- 
a/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
+++ 
b/camel-core/src/main/java/org/apache/camel/component/file/GenericFileEndpoint.java
@@ -904,7 +904,7 @@ public abstract class GenericFileEndpoint<T> extends 
ScheduledPollEndpoint imple
      * Logging level used when a read lock could not be acquired.
      * By default a WARN is logged.
      * You can change this level, for example to OFF to not have any logging.
-     * This option is only applicable for readLock of types: changed, 
fileLock, rename.
+     * This option is only applicable for readLock of types: changed, 
fileLock, idempotent, idempotent-changed, idempotent-rename, rename.
      */
     public void setReadLockLoggingLevel(LoggingLevel readLockLoggingLevel) {
         this.readLockLoggingLevel = readLockLoggingLevel;

Reply via email to