org.opennms.netmgt.scriptd.helper
Class AbstractEventPolicyRule

java.lang.Object
  extended by 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
AbstractEventPolicyRule()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEventPolicyRule

public AbstractEventPolicyRule()
Method Detail

addForwardRule

public void addForwardRule(EventMatch match)
Specified by:
addForwardRule in interface EventPolicyRule

addDropRule

public void addDropRule(EventMatch match)
Specified by:
addDropRule in interface EventPolicyRule

filter

public Event filter(Event event)
Description copied from interface: EventPolicyRule
Method to decide if the event should be forwarder

Specified by:
filter in interface EventPolicyRule
Returns:
event the filtered Event that can be null or with parameter changes

expand

protected abstract Event expand(Event event)


Copyright © 2011. All Rights Reserved.