Beispiel #1
0
 public static void nodeBackUp(Node node) {
   setContentType("text/html");
   setSubject("Node '" + node.getName() + "' back up!");
   addRecipient(Config.getErrorEmailAddress());
   setFrom(Config.getErrorFromEmailAddress());
   String status = "back up";
   send("mails/nodeDown", node, status);
 }
Beispiel #2
0
 public static void nodeDown(Node node, Throwable exactError) {
   setContentType("text/html");
   setSubject("Node '" + node.getName() + "' is down!");
   addRecipient(Config.getErrorEmailAddress());
   setFrom(Config.getErrorFromEmailAddress());
   String stackTrace = "Node wont respond to pings.";
   if (exactError != null) {
     stackTrace = ExceptionUtils.getStackTrace(exactError);
   }
   String status = "down";
   send("mails/nodeDown", node, stackTrace, status);
 }