|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.notifd.BroadcastEventProcessor
public final class BroadcastEventProcessor
BroadcastEventProcessor class.
| Constructor Summary | |
|---|---|
BroadcastEventProcessor()
Constructor for BroadcastEventProcessor. |
|
| Method Summary | |
|---|---|
void |
close()
Unsubscribe from eventd |
boolean |
computeNullSafeStatus()
computeNullSafeStatus |
static String |
expandNotifParms(String input,
Map<String,String> paramMap)
A parameter expansion algorithm, designed to replace strings delimited by percent signs '%' with a value supplied by a Map object. |
DestinationPathManager |
getDestinationPathManager()
getDestinationPathManager |
EventIpcManager |
getEventManager()
getEventManager |
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 void |
init()
An event listener is created and this instance is setup as the endpoint for broadcast events. |
protected void |
initExpandRe()
Initializes the expansion regular expression. |
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 |
setEventManager(EventIpcManager eventManager)
setEventManager |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BroadcastEventProcessor()
Constructor for BroadcastEventProcessor.
| Method Detail |
|---|
protected void init()
protected void initExpandRe()
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
queueID - a String object.targetName - a String object.commands - an array of String objects.params - a Map object.
Exception - if any.
public static String expandNotifParms(String input,
Map<String,String> paramMap)
NOTE: This function only replaces one particular parameter, the
%noticeid% parameter.
input - the input stringparamMap - a map that will supply the substitution values
String object.public String getName()
getName in interface EventListenerString object.
public Map<String,String> rebuildParameterMap(int notifId,
String resolutionPrefix,
boolean skipNumericPrefix)
throws Exception
rebuildParameterMap
notifId - a int.resolutionPrefix - a String object.skipNumericPrefix - a boolean.
Map object.
Exception - if any.
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||