guardian/guardian-management — pull request #10 by sihil (2012-05-21 17:00:15+00:00)
Title: Standalone management page server

These commits implement a standalone web server shim for management pages using the com.sun.net.httpserver library (in much the same way as Twitter Ostrich works).

The new server opens the lowest available port in the range of 18080 to 18099. I expect this to almost always result in port 18080 being selected. Once bound to a port, it will attempt to write out a file to /var/run/ports/.port containing the port number on which it is listening. This should help facilitate automated monitoring of management pages across the estate.

This pull request also adds the application name to any HTML management pages. In the situation where multiple applications are on the same server, their start order dictates which port they are on. It is therefore important that the application name is displayed.

Finally, a Play 2 plugin has been created to make it slightly easier to use this type of management server.