Ask Your Question
0

JDBC Producer - Event generations

asked 2018-07-05 00:54:31 -0500

Trans gravatar image

updated 2018-07-16 10:41:09 -0500

I have directory as origin (CSV file) and some processors in between and destination as JDBC Producer. Now, I want to catch the event as soon as all the data from CSV file is inserted into JDBC. How can we achieve this in SDC ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-07-11 15:54:45 -0500

jeff gravatar image

Are you talking about generating and handling an event every time an entire file has been read from the directory origin, and processed through the pipeline? If so, you can listen for the finished-file event generated by the directory origin (see docs here) to perform additional processing.

edit flag offensive delete link more

Comments

But "finished-file" event triggers when the origin completes processing a file but not after writing/inserting data to database

Trans gravatar imageTrans ( 2018-07-12 01:03:27 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-07-05 00:54:31 -0500

Seen: 74 times

Last updated: Jul 16