You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/01/04 11:03:15 UTC

[camel-kafka-connector-examples] 01/01: File Watch Example: Aligned

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch fix-file-watch
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector-examples.git

commit 8fbd4b4e0ad98e419751a60e0f5923a50d5471cc
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jan 4 12:02:42 2021 +0100

    File Watch Example: Aligned
---
 file-watch/file-watch-source/README.adoc | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/file-watch/file-watch-source/README.adoc b/file-watch/file-watch-source/README.adoc
index 3b6fb79..7999c2b 100644
--- a/file-watch/file-watch-source/README.adoc
+++ b/file-watch/file-watch-source/README.adoc
@@ -61,11 +61,9 @@ Through kafkacat you should see the info coming in.
 
 This component return all of the information as headers.
 
-NOTE: In the camel-file-watch component we fixed a little problem in showing the kind of event. It will be available in 3.7.0, so in CKC 0.7.0.
-
 ```
-bin/kafka-console-producer.sh --bootstrap-server localhost:9092 --topic mytopic
-Headers: CamelHeader.CamelFileAbsolute=true,CamelHeader.CamelFileAbsolutePath=/home/oscerd/test-file-watch/test.txt,CamelHeader.CamelFileLastModified=1603125050560,CamelHeader.CamelFileName=test.txt,CamelHeader.CamelFileNameConsumed=test.txt,CamelHeader.CamelFileNameOnly=test.txt,CamelHeader.CamelFileParent=/home/oscerd/test-file-watch,CamelHeader.CamelFilePath=/home/oscerd/test-file-watch/test.txt,CamelHeader.CamelFileRelativePath=test.txt,CamelProperty.CamelToEndpoint=direct://end?poll [...]
+> ./kafkacat -b localhost:9092 -t mytopic -f 'Headers: %h Value: %s'
+Headers: CamelHeader.CamelFileAbsolute=true,CamelHeader.CamelFileAbsolutePath=/home/oscerd/test-file-watch/test.txt,CamelHeader.CamelFileEventType=CREATE,CamelHeader.CamelFileLastModified=1609758044292,CamelHeader.CamelFileName=test.txt,CamelHeader.CamelFileNameConsumed=test.txt,CamelHeader.CamelFileNameOnly=test.txt,CamelHeader.CamelFileParent=/home/oscerd/test-file-watch,CamelHeader.CamelFilePath=/home/oscerd/test-file-watch/test.txt,CamelHeader.CamelFileRelativePath=test.txt,CamelProp [...]
 % Reached end of topic mytopic [0] at offset 1
 ```