public final class BroadcastEventProcessor extends Object implements EventListener
BroadcastEventProcessor class.
| Constructor and Description |
|---|
BroadcastEventProcessor()
Constructor for BroadcastEventProcessor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
buildParameterMap(Notification notification,
Event event,
int noticeId) |
void |
close()
Unsubscribe from eventd
|
boolean |
computeNullSafeStatus()
computeNullSafeStatus
|
DestinationPathManager |
getDestinationPathManager()
getDestinationPathManager
|
EventIpcManager |
getEventManager()
getEventManager
|
EventUtil |
getEventUtil() |
GroupManager |
getGroupManager()
getGroupManager
|
String |
getName()
Return an id for this event listener
|
Map<String,NoticeQueue> |
getNoticeQueues()
getNoticeQueues
|
NotifdConfigManager |
getNotifdConfigManager()
getNotifdConfigManager
|
NotificationCommandManager |
getNotificationCommandManager()
getNotificationCommandManager
|
NotificationManager |
getNotificationManager()
getNotificationManager
|
PollOutagesConfigManager |
getPollOutagesConfigManager()
getPollOutagesConfigManager
|
UserManager |
getUserManager()
getUserManager
|
protected Map<String,Map<String,String>> |
getVarbindsDecodeMap(String eventUei) |
protected void |
init()
An event listener is created and this instance is setup as the
endpoint for broadcast events.
|
void |
onEvent(Event event)
Process a sent event.
|
Map<String,String> |
rebuildParameterMap(int notifId,
String resolutionPrefix,
boolean skipNumericPrefix)
rebuildParameterMap
|
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.
|
protected void |
sendResolvedNotificationsToUser(String queueID,
String targetName,
String[] commands,
Map<String,String> params)
sendResolvedNotificationsToUser
|
void |
setDestinationPathManager(DestinationPathManager destinationPathManager)
setDestinationPathManager
|
void |
setEventConfDao(EventConfDao eventConfDao) |
void |
setEventManager(EventIpcManager eventManager)
setEventManager
|
void |
setEventUtil(EventUtil eventUtil) |
void |
setGroupManager(GroupManager groupManager)
setGroupManager
|
void |
setNoticeQueues(Map<String,NoticeQueue> noticeQueues)
setNoticeQueues
|
void |
setNotifdConfigManager(NotifdConfigManager notifdConfigManager)
setNotifdConfigManager
|
void |
setNotificationCommandManager(NotificationCommandManager notificationCommandManager)
setNotificationCommandManager
|
void |
setNotificationManager(NotificationManager notificationManager)
setNotificationManager
|
void |
setPollOutagesConfigManager(PollOutagesConfigManager pollOutagesConfigManager)
setPollOutagesConfigManager
|
void |
setUserManager(UserManager userManager)
setUserManager
|
public BroadcastEventProcessor()
Constructor for BroadcastEventProcessor.
protected void init()
public void close()
public void onEvent(Event event)
onEvent in interface EventListenerevent - a Event object.public boolean computeNullSafeStatus()
computeNullSafeStatus
protected void sendResolvedNotificationsToUser(String queueID, String targetName, String[] commands, Map<String,String> params) throws Exception
sendResolvedNotificationsToUser
protected Map<String,String> buildParameterMap(Notification notification, Event event, int noticeId)
public String getName()
getName in interface EventListenerString object.public Map<String,String> rebuildParameterMap(int notifId, String resolutionPrefix, boolean skipNumericPrefix) throws Exception
rebuildParameterMap
public String scheduledOutage(long nodeId, String theInterface)
nodeId - a long.theInterface - a String object.IOException - if any.org.exolab.castor.xml.ValidationException - if any.org.exolab.castor.xml.MarshalException - if any.public DestinationPathManager getDestinationPathManager()
getDestinationPathManager
DestinationPathManager object.public void setDestinationPathManager(DestinationPathManager destinationPathManager)
setDestinationPathManager
destinationPathManager - a DestinationPathManager object.public EventIpcManager getEventManager()
getEventManager
EventIpcManager object.public void setEventManager(EventIpcManager eventManager)
setEventManager
eventManager - a EventIpcManager object.public GroupManager getGroupManager()
getGroupManager
GroupManager object.public void setGroupManager(GroupManager groupManager)
setGroupManager
groupManager - a GroupManager object.public NotifdConfigManager getNotifdConfigManager()
getNotifdConfigManager
NotifdConfigManager object.public void setNotifdConfigManager(NotifdConfigManager notifdConfigManager)
setNotifdConfigManager
notifdConfigManager - a NotifdConfigManager object.public NotificationCommandManager getNotificationCommandManager()
getNotificationCommandManager
NotificationCommandManager object.public void setNotificationCommandManager(NotificationCommandManager notificationCommandManager)
setNotificationCommandManager
notificationCommandManager - a NotificationCommandManager object.public NotificationManager getNotificationManager()
getNotificationManager
NotificationManager object.public void setNotificationManager(NotificationManager notificationManager)
setNotificationManager
notificationManager - a NotificationManager object.public PollOutagesConfigManager getPollOutagesConfigManager()
getPollOutagesConfigManager
PollOutagesConfigManager object.public void setPollOutagesConfigManager(PollOutagesConfigManager pollOutagesConfigManager)
setPollOutagesConfigManager
pollOutagesConfigManager - a PollOutagesConfigManager object.public UserManager getUserManager()
getUserManager
UserManager object.public void setUserManager(UserManager userManager)
setUserManager
userManager - a UserManager object.public Map<String,NoticeQueue> getNoticeQueues()
getNoticeQueues
Map object.public void setNoticeQueues(Map<String,NoticeQueue> noticeQueues)
setNoticeQueues
noticeQueues - a Map object.public void setEventUtil(EventUtil eventUtil)
public EventUtil getEventUtil()
public void setEventConfDao(EventConfDao eventConfDao)
Copyright © 2018. All rights reserved.