INT-4187: Add enable-status-reader for tailer

JIRA: https://jira.spring.io/browse/INT-4187

Add javadoc and test

- assertTrue on default adapter
- assertFalse check on nativeAdapter
- update XSD to add enable-status-reader

add `@auther`

add example in reference document

update adoc

* Fix minor typos in docs and allow to configure `enable-status-reader` with property placeholder

**Cherry-pick to 4.3.x**

(cherry picked from commit 16c7535)
This commit is contained in:
Ali Shahbour
2016-12-16 08:34:43 -05:00
committed by Artem Bilan
parent 176be69b0f
commit d2f4b27f92
6 changed files with 50 additions and 1 deletions

View File

@@ -430,6 +430,18 @@ This creates a native adapter with default '-F -n 0' options (follow the file na
This creates a native adapter with '-F -n +0' options (follow the file name, emitting all existing lines).
If the tail command fails (on some platforms, a missing file causes the `tail` to fail, even with `-F` specified), the command will be retried every 10 seconds.
[source,xml]
----
<int-file:tail-inbound-channel-adapter id="native"
channel="input"
enable-status-reader="false"
task-executor="exec"
file="/tmp/foo"/>
----
By default native adapter capture from standard output and send them as messages and from standard error to raise events.
Starting with _version 4.3.6_, you can discard the standard error events by setting the `enable-status-reader` to `false`.
[source,xml]
----
<int-file:tail-inbound-channel-adapter id="apache"