YAMJ / yamj-v3

Main Project for YAMJ v3
11 stars 7 forks source link

watcher never send new/modifiy/delete to the core #324

Closed jluc2808 closed 7 years ago

jluc2808 commented 7 years ago

if the watcher parameter is setted , the watch process detect modification but never send this mod to the core to rescan and update libraries watched (this has noting to do with the watched item of the PCH - trakttv)

some tasks are taken care of by Spring. So there may be some things that are never really called from within the filescanner, the idea was to have a shared "queue" of items that the filescanner finds and then a process to send those to the core. So the part that reads the directories should add something to the queue and then the routine to read the queue send it to the core , which have to process the job.

after a big analysis, what is done a lot of solution could solve the problem while scan / send / watch are parallel process , the one i implement is the following :

NOTA: several filescanner could start while watcher is enable , each are performed by his own.

before i update all the modification , thanks to comment.

jluc2808 commented 7 years ago

add filescanner.wait.time to yamj3-filescanner.properties , default value is 600000 milliseconds (10 minutes) could be modified by user in yamj3-filescanner.user.properties

jluc2808 commented 7 years ago

forget a file in the distribution