Class AbstractEventPolicyRule
- java.lang.Object
-
- org.opennms.netmgt.scriptd.helper.AbstractEventPolicyRule
-
- All Implemented Interfaces:
EventPolicyRule
- Direct Known Subclasses:
EventPolicyRuleDefaultImpl
public abstract class AbstractEventPolicyRule extends Object implements EventPolicyRule
-
-
Field Summary
-
Fields inherited from interface org.opennms.netmgt.scriptd.helper.EventPolicyRule
m_filter, m_forwardes
-
-
Constructor Summary
Constructors Constructor Description AbstractEventPolicyRule()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddDropRule(EventMatch match)voidaddForwardRule(EventMatch match)protected abstract Eventexpand(Event event)Eventfilter(Event event)Method to decide if the event should be forwarder
-
-
-
Method Detail
-
addForwardRule
public void addForwardRule(EventMatch match)
- Specified by:
addForwardRulein interfaceEventPolicyRule
-
addDropRule
public void addDropRule(EventMatch match)
- Specified by:
addDropRulein interfaceEventPolicyRule
-
filter
public Event filter(Event event)
Description copied from interface:EventPolicyRuleMethod to decide if the event should be forwarder- Specified by:
filterin interfaceEventPolicyRule- Returns:
- event the filtered Event that can be null or with parameter changes
-
-