|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.systemstatus.pingmail.PingMail
public class PingMail
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.
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 |
---|
public PingMail()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- Takes three string arguments, a hackystat server, a mail server, and an email.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |