limit - Move files from the import directory into archive using Apache Camel -


i have requirement move files import directory monitored camel directory. used move , movefailed options of camel in route.

i have maxfilesallowedinarchive parameter in properties files , if file limit exceeded, oldest file has deleted.

how can make custom move , movefailed control number of files moved , keep latest files in archive?

camel doesn't have component operates off of filesystem meta data (such counts , dates), can implement using customer processor uses new java paths , files api's.

create timer/quartz route calls customer processor. in customer processor, list files in "move" , "movefailed" directory count contents (and sort date). if maxfilesallowsinarchive exceeded, delete x number of files folders.


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -