11/28/2023 0 Comments Reload monit config fileIf “Yes” do the reload process, If “No” exit the flow service.īut all the above process is to be scheduled. Invoke a Java service(I don’t think there is any flow service for this requirement) which actually takes the file name as input, compares the last modified timestamp with the previous timestamp(if you store the previous timestamp somewhere in a config file or something), and the flag the output as true or false accordingly. (B)Create a flow service (serv2 in your case) If you don’t specify a value it monitors all the files in the folder. In the file name filter, you will give your complete file name as you want to monitor only one file. (A)Configure a File poller from the Admin Screen and define the processing service. This would be my solution for the problem described. Reload is required only when the file changes.Īm I overthinking and complicating something that is very simple? The problem with this is, sometimes the file will not change for days and, there is no need to check/reload the file every 15 mins. If the change to the properties file is made between the run interval, the service has to be manually run to load the changes. Reload the file everytime someone modifies it and refresh the cache.Ĭurrently, I have scheduled this service to read the config file every 15 minutes and load any changes to the file.Somehow monitor the config params file.Now, I want to make serv2 do the following. The publish to broker can be turned on or off from the config props file. The service which reads the config params is cached (lets call this serv2 which checks the properties). I have a auditTransaction service, which publishes an incoming document to the broker after checking some properties in a config file. I have an interesting requirement…and was wondering if you guys can think of a best way to implement this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |