Class BroadcastEventProcessor

    • Constructor Detail

      • BroadcastEventProcessor

        public BroadcastEventProcessor()

        Constructor for BroadcastEventProcessor.

    • Method Detail

      • init

        protected void init()
                     throws 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:
        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​(String queueID,
                                                       String targetName,
                                                       String[] commands,
                                                       Map<String,​String> params)
                                                throws Exception

        sendResolvedNotificationsToUser

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

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

        rebuildParameterMap

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

        public String scheduledOutage​(long nodeId,
                                      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:
        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.
      • setNoticeQueues

        public void setNoticeQueues​(Map<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)