Class BroadcastEventProcessor

    • Constructor Detail

      • BroadcastEventProcessor

        public BroadcastEventProcessor()

        Constructor for BroadcastEventProcessor.

    • Method Detail

      • init

        protected void init()
                     throws java.io.IOException
        An event listener is created and this instance is setup as the endpoint for broadcast events. When a new event arrives it is processed and the appropriate action is taken.
        Throws:
        java.io.IOException
      • close

        public void close()
        Unsubscribe from eventd
      • onEvent

        public void onEvent​(IEvent event)
        Process a sent event. This method is invoked by the EventIpcManager when a new event is available for processing.
        Specified by:
        onEvent in interface EventListener
        Parameters:
        event - a IEvent object.
      • computeNullSafeStatus

        public boolean computeNullSafeStatus()

        computeNullSafeStatus

        Returns:
        false if status is not defined in configuration as "on".
      • sendResolvedNotificationsToUser

        protected void sendResolvedNotificationsToUser​(java.lang.String queueID,
                                                       java.lang.String targetName,
                                                       java.lang.String[] commands,
                                                       java.util.Map<java.lang.String,​java.lang.String> params)
                                                throws java.lang.Exception

        sendResolvedNotificationsToUser

        Parameters:
        queueID - a String object.
        targetName - a String object.
        commands - an array of String objects.
        params - a Map object.
        Throws:
        java.lang.Exception - if any.
      • buildParameterMap

        protected java.util.Map<java.lang.String,​java.lang.String> buildParameterMap​(Notification notification,
                                                                                           Event event,
                                                                                           int noticeId)
      • getVarbindsDecodeMap

        protected java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>> getVarbindsDecodeMap​(java.lang.String eventUei)
      • getName

        public java.lang.String getName()
        Return an id for this event listener
        Specified by:
        getName in interface EventListener
        Returns:
        a String object.
      • rebuildParameterMap

        public java.util.Map<java.lang.String,​java.lang.String> rebuildParameterMap​(int notifId,
                                                                                          java.lang.String resolutionPrefix,
                                                                                          boolean skipNumericPrefix)
                                                                                   throws java.lang.Exception

        rebuildParameterMap

        Parameters:
        notifId - a int.
        resolutionPrefix - a String object.
        skipNumericPrefix - a boolean.
        Returns:
        a Map object.
        Throws:
        java.lang.Exception - if any.
      • scheduledOutage

        public java.lang.String scheduledOutage​(long nodeId,
                                                java.lang.String theInterface)
        Checks the package information for the pollable service and determines if any of the calendar outages associated with the package apply to the current time and the service's interface. If an outage applies it's name is returned...otherwise null is returned.
        Parameters:
        nodeId - a long.
        theInterface - a String object.
        Returns:
        null if no outage found (indicating a notification may be sent) or the outage name, if an applicable outage is found (indicating notification should not be sent).
        Throws:
        java.io.IOException - if any.
      • setEventManager

        public void setEventManager​(EventIpcManager eventManager)

        setEventManager

        Parameters:
        eventManager - a EventIpcManager object.
      • setGroupManager

        public void setGroupManager​(GroupManager groupManager)

        setGroupManager

        Parameters:
        groupManager - a GroupManager object.
      • setNotifdConfigManager

        public void setNotifdConfigManager​(NotifdConfigManager notifdConfigManager)

        setNotifdConfigManager

        Parameters:
        notifdConfigManager - a NotifdConfigManager object.
      • setNotificationManager

        public void setNotificationManager​(NotificationManager notificationManager)

        setNotificationManager

        Parameters:
        notificationManager - a NotificationManager object.
      • setUserManager

        public void setUserManager​(UserManager userManager)

        setUserManager

        Parameters:
        userManager - a UserManager object.
      • getNoticeQueues

        public java.util.Map<java.lang.String,​NoticeQueue> getNoticeQueues()

        getNoticeQueues

        Returns:
        a Map object.
      • setNoticeQueues

        public void setNoticeQueues​(java.util.Map<java.lang.String,​NoticeQueue> noticeQueues)

        setNoticeQueues

        Parameters:
        noticeQueues - a Map object.
      • setEventUtil

        public void setEventUtil​(EventUtil eventUtil)
      • getEventUtil

        public EventUtil getEventUtil()
      • setEventConfDao

        public void setEventConfDao​(EventConfDao eventConfDao)