src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/MailOutput.java
public static void write(
      String subject,
      Map<String, Long> histogram,
      Set<String> highlightKeys,
      String mailHost,
      String[] emailTo,
      String[] emailCc,
      String emailFrom)
      throws Exception {
    write(
        subject,
        convertHistogramToHtml(histogram, highlightKeys),
        mailHost,
        emailTo,
        emailCc,
        emailFrom);
  }
/**
   * Write and send an email.
   *
   * @param subject email subject
   * @param histogram histogram output
   * @param highlightKeys histogram keys to highlight / bold in email
   * @param mailHost email host
   * @param emailTo email to address
   * @param emailCc email cc addresses
   * @param emailFrom email from address
   * @throws Exception if email fails to send
   */
Write and send an email.
Write and send an email .
public static void write(
      String subject,
      Map<String, Long> histogram,
      Set<String> highlightKeys,
      String mailHost,
      String[] emailTo,
      String[] emailCc,
      String emailFrom)
      throws Exception {
    write(
        subject,
        convertHistogramToHtml(histogram, highlightKeys),
        mailHost,
        emailTo,
        emailCc,
        emailFrom);
  }
public static void write ( String subject , Map < String , Long > histogram , Set < String > highlightKeys , String mailHost , String [ ] emailTo , String [ ] emailCc , String emailFrom ) throws Exception { write ( subject , convertHistogramToHtml ( histogram , highlightKeys ) , mailHost , emailTo , emailCc , emailFrom ) ; }
Write and send an email.
Write and send an email .