Class AbstractNorthbounder

    • Constructor Detail

      • AbstractNorthbounder

        protected AbstractNorthbounder​(java.lang.String name)
        Instantiates a new abstract northbounder.
        Parameters:
        name - the name
    • Method Detail

      • getName

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

        public void setNaglesDelay​(long delay)
        Sets the nagles delay.
        Parameters:
        delay - the new nagles delay
      • setRetryInterval

        public void setRetryInterval​(int retryInterval)
        Sets the retry interval.
        Parameters:
        retryInterval - the new retry interval
      • setMaxBatchSize

        public void setMaxBatchSize​(int maxBatchSize)
        Sets the max batch size.
        Parameters:
        maxBatchSize - the new max batch size
      • setMaxPreservedAlarms

        public void setMaxPreservedAlarms​(int maxPreservedAlarms)
        Sets the max preserved alarms.
        Parameters:
        maxPreservedAlarms - the new max preserved alarms
      • onPreStart

        protected void onPreStart()
        Override this to perform actions before startup.
      • onPostStart

        protected void onPostStart()
        Override this to perform actions after startup.
      • accepts

        protected abstract boolean accepts​(NorthboundAlarm alarm)
        Accepts.
        Parameters:
        alarm - the alarm
        Returns:
        true, if successful
      • onStop

        protected void onStop()
        Override this to perform actions when stopping.
      • reloadConfig

        public void reloadConfig()
        Override this to perform actions when reloading the configuration.
        Specified by:
        reloadConfig in interface Northbounder
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • createMapping

        protected java.util.Map<java.lang.String,​java.lang.Object> createMapping​(NorthboundAlarm alarm,
                                                                                       java.lang.String dateFormat)
        Creates the mapping.
        Parameters:
        alarmMappings - the alarm mappings
        alarm - the northbound alarm
        Returns:
        the mapping object