Examples of sendAlert()


Examples of com.acelet.lib.SendEmail.sendAlert()

   * @param subject the subject of the email.
   * @param msg the email body.
   */
  public static void sendAlertEmail(String subject, String msg) throws Exception {
    SendEmail sendEmail = MailServerData.getSendEmailObject();
    sendEmail.sendAlert(subject, "SuperScheduler: " + msg);
  }

  /**
   * <code>updateHoliday</code> update the Holiday.
   * <br>
 
View Full Code Here

Examples of com.acelet.lib.SendEmail.sendAlert()

    }
  }

  public static void sendAlertEmail(String subject, String msg) throws Exception {
    SendEmail sendEmail = MailServerData.getSendEmailObject();
    sendEmail.sendAlert(subject, "SuperWatchdog: " + msg);
  }

  public static Vector selectAllWorkingChores(long from, long to, int rows) throws Exception {
    Connection connection = DirectTaskDatabaseConnection.getConnection();
    synchronized (connection) {
View Full Code Here

Examples of com.acelet.lib.SendEmail.sendAlert()

    sendAlarmEmail(alarmEmail, subject, message);
  }

  public static void sendAlertEmail(String subject, String msg) throws Exception {
    SendEmail sendEmail = MailServerData.getSendEmailObject();
    sendEmail.sendAlert(subject, "SuperScheduler: " + msg);
  }

  public static String setIsolationLevel() throws Exception {
    Connection connection = DirectTaskDatabaseConnection.getConnection();
View Full Code Here

Examples of com.dianping.cat.report.task.alert.sender.sender.SenderManager.sendAlert()

    String content = Files.forIO().readFrom(new File("/tmp/html.html"), "utf-8");
    List<String> receivers = new ArrayList<String>();

    receivers.add("yong.you@dianping.com");
    AlertMessageEntity message = new AlertMessageEntity("Test", "test", "test", content, receivers);
    boolean result = manager.sendAlert(AlertChannel.MAIL, message);

    System.out.println(result);
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.