org.hackystat.systemstatus.pingmail
Class PingMail

java.lang.Object
  extended by org.hackystat.systemstatus.pingmail.PingMail

public class PingMail
extends java.lang.Object

Demonstration class to show a simple form of service monitoring. Provides a main class that is invoked with a mail server, a SensorBase URL, and an email address. The hackystat server is pinged and an email is generated indicating whether the ping was successful. If so, the server is up and accepting requests.

Author:
Philip Johnson

Constructor Summary
PingMail()
           
 
Method Summary
static void main(java.lang.String[] args)
          When invoked, this main class pings the passed server and sends an email indicating whether the ping was successful or not to the passed email address via the passed mail server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PingMail

public PingMail()
Method Detail

main

public static void main(java.lang.String[] args)
When invoked, this main class pings the passed server and sends an email indicating whether the ping was successful or not to the passed email address via the passed mail server.

Parameters:
args - Takes three string arguments, a hackystat server, a mail server, and an email.