Class SpallocProperties.ReportProperties

java.lang.Object
uk.ac.manchester.spinnaker.alloc.SpallocProperties.ReportProperties
Enclosing class:
SpallocProperties

public static class SpallocProperties.ReportProperties extends Object
Notify an administrator about problems reported with boards.
  • Constructor Details

    • ReportProperties

      public ReportProperties(@DefaultValue("false") boolean send, @DefaultValue("spalloc@localhost") String from, @DefaultValue("root@localhost") String to, @DefaultValue("NOTICE: Board taken out of service") String subject)
      Parameters:
      send - Whether to send an email about reported boards.
      from - The From: email address.
      to - The To: email address.
      subject - The Subject: header.
  • Method Details

    • isSend

      public boolean isSend()
      Returns:
      Whether to send an email about reported boards.
    • getFrom

      @Email public @Email String getFrom()
      Returns:
      The From: email address.
    • getTo

      @Email public @Email String getTo()
      Returns:
      The To: email address.
    • getSubject

      @NotBlank public @NotBlank String getSubject()
      Returns:
      The Subject: header.