Monitoring

This directory contains all the sample code from the Monitoring chapter. The HeartbeatServer.java file demonstrates how to create a simple LocalServerManager instance that in turn loads an instance of the HeartbeatService, to send heartbeat messages to any registered listeners. This demonstrates how to keep a heartbeat on a machine/server level--it will not tell you when a process dies, nor will you be able to differentiate from when this process dies from when the server as a whole dies.

The other services described in this chapter are part of the javageeks.com library.