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 void
addDropRule(EventMatch match)
void
addForwardRule(EventMatch match)
protected abstract Event
expand(Event event)
Event
filter(Event event)
Method to decide if the event should be forwarder
-
-
-
Method Detail
-
addForwardRule
public void addForwardRule(EventMatch match)
- Specified by:
addForwardRule
in interfaceEventPolicyRule
-
addDropRule
public void addDropRule(EventMatch match)
- Specified by:
addDropRule
in interfaceEventPolicyRule
-
filter
public Event filter(Event event)
Description copied from interface:EventPolicyRule
Method to decide if the event should be forwarder- Specified by:
filter
in interfaceEventPolicyRule
- Returns:
- event the filtered Event that can be null or with parameter changes
-
-