| java.lang.Object org.drools.audit.WorkingMemoryLogger
All known Subclasses: org.drools.audit.WorkingMemoryFileLogger, org.drools.audit.WorkingMemoryInMemoryLogger,
WorkingMemoryLogger | abstract public class WorkingMemoryLogger implements WorkingMemoryEventListener,AgendaEventListener,RuleFlowEventListener(Code) | | A logger of events generated by a working memory.
It listens to the events generated by the working memory and
creates associated log event (containing a snapshot of the
state of the working event at that time).
Filters can be used to filter out unwanted events.
Subclasses of this class should implement the logEventCreated(LogEvent)
method and store this information, like for example log to file
or database.
author: Kris Verlaenen |
Method Summary | |
public void | activationCancelled(ActivationCancelledEvent event, WorkingMemory workingMemory) | public void | activationCreated(ActivationCreatedEvent event, WorkingMemory workingMemory) | public void | addFilter(ILogEventFilter filter) Adds the given filter to the list of filters for this event log. | public void | afterActivationFired(AfterActivationFiredEvent event, WorkingMemory workingMemory) | public void | agendaGroupPopped(AgendaGroupPoppedEvent event, WorkingMemory workingMemory) | public void | agendaGroupPushed(AgendaGroupPushedEvent event, WorkingMemory workingMemory) | public void | beforeActivationFired(BeforeActivationFiredEvent event, WorkingMemory workingMemory) | public void | clearFilters() Clears all filters of this event log. | abstract public void | logEventCreated(LogEvent logEvent) This method is invoked every time a new log event is created. | public void | objectInserted(ObjectInsertedEvent event) | public void | objectRetracted(ObjectRetractedEvent event) | public void | objectUpdated(ObjectUpdatedEvent event) | public void | removeFilter(ILogEventFilter filter) Removes the given filter from the list of filters for this event log. | public void | ruleFlowCompleted(RuleFlowCompletedEvent event, WorkingMemory workingMemory) | public void | ruleFlowGroupActivated(RuleFlowGroupActivatedEvent event, WorkingMemory workingMemory) | public void | ruleFlowGroupDeactivated(RuleFlowGroupDeactivatedEvent event, WorkingMemory workingMemory) | public void | ruleFlowStarted(RuleFlowStartedEvent event, WorkingMemory workingMemory) |
WorkingMemoryLogger | public WorkingMemoryLogger(EventManager eventManager)(Code) | | Creates a new working memory logger for the given working memory.
Parameters: workingMemory - |
addFilter | public void addFilter(ILogEventFilter filter)(Code) | | Adds the given filter to the list of filters for this event log.
A log event must be accepted by all the filters to be entered in
the event log.
Parameters: filter - The filter that should be added. |
clearFilters | public void clearFilters()(Code) | | Clears all filters of this event log.
|
logEventCreated | abstract public void logEventCreated(LogEvent logEvent)(Code) | | This method is invoked every time a new log event is created.
Subclasses should implement this method and store the event,
like for example log to a file or database.
Parameters: logEvent - |
removeFilter | public void removeFilter(ILogEventFilter filter)(Code) | | Removes the given filter from the list of filters for this event log.
If the given filter was not a filter of this event log, nothing
happens.
Parameters: filter - The filter that should be removed. |
|
|