I am running 3 instances of a web crawler(Java program) in 3 Windows machines residing on the same network.
I want to write a master java program that monitors all the 3 web crawler programs and if any program is terminated, then it restarts that particular program.
I am able to bind the java program on the client machines to a socket and monitor the socket from the server, but I don't know how to restart the program if it terminates. I do not have even the slightest idea, how I am supposed to achieve this. Any guidance is appreciated.
How can I restart the client application remotely?