Class EmailNorthbounder

    • Constructor Detail

      • EmailNorthbounder

        public EmailNorthbounder​(EmailNorthbounderConfigDao configDao,
                                 JavaMailConfigurationDao javaMailDao,
                                 String destinationName)
        Instantiates a new SNMP Trap northbounder.
        Parameters:
        configDao - the SNMP Trap configuration DAO
        javaMailDao - the JavaMail configuration DAO
        destinationName - the destination name
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • accepts

        public boolean accepts​(NorthboundAlarm alarm)
        The abstraction makes a call here to determine if the alarm should be placed on the queue of alarms to be sent northerly.
        Specified by:
        accepts in class AbstractNorthbounder
        Parameters:
        alarm - the alarm
        Returns:
        true, if successful
      • isReady

        public boolean isReady()
        Description copied from interface: Northbounder
        Used to determine if the northbounder is ready to accept alarms. If no northbounders are ready, the caller can save resources by not creating and initializing the NorthboundAlarms. This method is called once after northbounder is registered and started. If the status were to change sometime after, the northbounder must re-register itself.
        Specified by:
        isReady in interface Northbounder
        Returns:
        true if the northbounder is ready to accept alarms, false otherwise.
      • getSendmailConfig

        protected SendmailConfig getSendmailConfig​(NorthboundAlarm alarm)
        Gets the sendmail configuration.
        Parameters:
        alarm - the northbound alarm
        Returns:
        the sendmail configuration