org.drools.audit.event
Class WorkingMemoryLogEventFilter

java.lang.Object
  extended by org.drools.audit.event.WorkingMemoryLogEventFilter
All Implemented Interfaces:
ILogEventFilter

public class WorkingMemoryLogEventFilter
extends Object
implements ILogEventFilter

An event filter that can be used to filter working memory events. By default, all events are allowed. You can filter out any of the three types of working memory events by setting the allow boolean for that type to false.


Constructor Summary
WorkingMemoryLogEventFilter(boolean allowAssertEvents, boolean allowModifyEvents, boolean allowRetractEvents)
           
 
Method Summary
 boolean acceptEvent(LogEvent event)
          Returns whether the given event should be filtered from the event log or not.
 void setAllowInsertEvents(boolean allowInsertEvents)
           
 void setAllowRetractEvents(boolean allowRetractEvents)
           
 void setAllowUpdateEvents(boolean allowUpdateEvents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkingMemoryLogEventFilter

public WorkingMemoryLogEventFilter(boolean allowAssertEvents,
                                   boolean allowModifyEvents,
                                   boolean allowRetractEvents)
Method Detail

acceptEvent

public boolean acceptEvent(LogEvent event)
Description copied from interface: ILogEventFilter
Returns whether the given event should be filtered from the event log or not.

Specified by:
acceptEvent in interface ILogEventFilter
Parameters:
event - The log event
Returns:
Whether the event should be filtered from the event log or not.
See Also:
ILogEventFilter

setAllowInsertEvents

public void setAllowInsertEvents(boolean allowInsertEvents)

setAllowUpdateEvents

public void setAllowUpdateEvents(boolean allowUpdateEvents)

setAllowRetractEvents

public void setAllowRetractEvents(boolean allowRetractEvents)


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.