Class EmailDestination

  • All Implemented Interfaces:
    java.io.Serializable, Destination

    public class EmailDestination
    extends java.lang.Object
    implements Destination
    Configuration for the various Email hosts to receive alarms via Email.
    Author:
    Alejandro Galue
    See Also:
    Serialized Form
    • Constructor Detail

      • EmailDestination

        public EmailDestination()
    • Method Detail

      • isFirstOccurrenceOnly

        public boolean isFirstOccurrenceOnly()
        Description copied from interface: Destination
        Checks if is first occurrence only.
        Specified by:
        isFirstOccurrenceOnly in interface Destination
        Returns:
        true, if is first occurrence only
      • getName

        public java.lang.String getName()
        Description copied from interface: Destination
        Gets the destination name.
        Specified by:
        getName in interface Destination
        Returns:
        the destination name
      • setName

        public void setName​(java.lang.String name)
        Sets the name.
        Parameters:
        name - the new name
      • getFilters

        public java.util.List<EmailFilter> getFilters()
        Gets the filters.
        Returns:
        the filters
      • setFilters

        public void setFilters​(java.util.List<EmailFilter> filters)
        Sets the filters.
        Parameters:
        filters - the new filters
      • accepts

        public boolean accepts​(NorthboundAlarm alarm)
        Accepts.

        If the destination doesn't have filter, the method will return true.

        If the method has filters, they will be evaluated. If no filters are satisfied, the method will return false. Otherwise, the method will return true as soon as one filter is satisfied.

        Parameters:
        alarm - the alarm
        Returns:
        true, if successful