Class Ackd

  • All Implemented Interfaces:
    SpringServiceDaemon, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

    public class Ackd
    extends java.lang.Object
    implements SpringServiceDaemon, org.springframework.beans.factory.DisposableBean
    Acknowledgment management Daemon
    Author:
    David Hustace, Jeff Gehlbach
    • Field Detail

    • Constructor Detail

      • Ackd

        public Ackd()
    • Method Detail

      • destroy

        public void destroy()

        destroy

        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
      • startReaders

        protected void startReaders()
        Starts the AckReaders without indicating a reload of their configuration is necessary.
      • startReaders

        protected void startReaders​(boolean reloadConfig)
        Starts the AckReaders indicating a reload of their configuration is necessary.
        Parameters:
        reloadConfig - a boolean.
      • stopReaders

        protected void stopReaders()

        stopReaders

      • pauseReaders

        protected void pauseReaders()

        pauseReaders

      • resumeReaders

        protected void resumeReaders()

        resumeReaders

      • restartReaders

        protected void restartReaders​(boolean reloadConfigs)

        restartReaders

        Parameters:
        reloadConfigs - a boolean.
      • handleAckEvent

        public void handleAckEvent​(IEvent event)
        Handles the event driven access to acknowledging OnmsAcknowledgables. The acknowledgment event contains 4 parameters: ackUser: The user acknowledging the OnmsAcknowledgable ackAction: ack, unack, esc, clear ackType: AckTypeOnmsAlarm, OnmsNotification, etc. refId: The ID of the OnmsAcknowledgable
        Parameters:
        event - a IEvent object.
      • handleReloadConfigEvent

        public void handleReloadConfigEvent​(IEvent event)

        handleReloadConfigEvent

        Parameters:
        event - a IEvent object.
      • setExecutor

        public void setExecutor​(java.util.concurrent.ScheduledThreadPoolExecutor executor)

        setExecutor

        Parameters:
        executor - a ScheduledThreadPoolExecutor object.
      • getExecutor

        public java.util.concurrent.ScheduledThreadPoolExecutor getExecutor()

        getExecutor

        Returns:
        a ScheduledThreadPoolExecutor object.
      • setEventForwarder

        public void setEventForwarder​(EventForwarder eventForwarder)

        setEventForwarder

        Parameters:
        eventForwarder - a EventForwarder object.
      • getAckReaders

        protected java.util.List<AckReader> getAckReaders()

        getAckReaders

        Returns:
        a List object.
      • setAckReaders

        public void setAckReaders​(java.util.List<AckReader> ackReaders)

        setAckReaders

        Parameters:
        ackReaders - a List object.
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception

        afterPropertiesSet

        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception - if any.
      • getName

        public java.lang.String getName()

        getName

        Returns:
        a String object.