Creates a connection between a parent java process and it's child process.
SCENARIO: When a parent process creates a child the parent may monitor the child using various hooks. If the parent
process itself dies unexpectedly (kill -9) the child process will remain alive unaware of it's parents fate.
This class is able to create a server thread on the parent and a watchdog thread on the child which periodically
pages it's parent to make sure it's still alive. If the parent's heartbeat flatlines, the child's watchdog thread
will call System.exit(0).
|