|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.drools.audit.WorkingMemoryLogger
public abstract class WorkingMemoryLogger
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.
| Constructor Summary | |
|---|---|
WorkingMemoryLogger(WorkingMemory workingMemory)
Creates a new working memory logger for the given working memory. |
|
| Method Summary | |
|---|---|
void |
activationCancelled(ActivationCancelledEvent event)
|
void |
activationCreated(ActivationCreatedEvent event)
|
void |
addFilter(ILogEventFilter filter)
Adds the given filter to the list of filters for this event log. |
void |
afterActivationFired(AfterActivationFiredEvent event)
|
void |
beforeActivationFired(BeforeActivationFiredEvent event)
|
void |
clearFilters()
Clears all filters of this event log. |
abstract void |
logEventCreated(LogEvent logEvent)
This method is invoked every time a new log event is created. |
void |
objectAsserted(ObjectAssertedEvent event)
|
void |
objectModified(ObjectModifiedEvent event)
|
void |
objectRetracted(ObjectRetractedEvent event)
|
void |
removeFilter(ILogEventFilter filter)
Removes the given filter from the list of filters for this event log. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkingMemoryLogger(WorkingMemory workingMemory)
workingMemory - | Method Detail |
|---|
public abstract void logEventCreated(LogEvent logEvent)
logEvent - public void addFilter(ILogEventFilter filter)
filter - The filter that should be added.public void removeFilter(ILogEventFilter filter)
filter - The filter that should be removed.public void clearFilters()
public void objectAsserted(ObjectAssertedEvent event)
objectAsserted in interface WorkingMemoryEventListenerWorkingMemoryEventListenerpublic void objectModified(ObjectModifiedEvent event)
objectModified in interface WorkingMemoryEventListenerWorkingMemoryEventListenerpublic void objectRetracted(ObjectRetractedEvent event)
objectRetracted in interface WorkingMemoryEventListenerWorkingMemoryEventListenerpublic void activationCreated(ActivationCreatedEvent event)
activationCreated in interface AgendaEventListenerAgendaEventListenerpublic void activationCancelled(ActivationCancelledEvent event)
activationCancelled in interface AgendaEventListenerAgendaEventListenerpublic void beforeActivationFired(BeforeActivationFiredEvent event)
beforeActivationFired in interface AgendaEventListenerAgendaEventListenerpublic void afterActivationFired(AfterActivationFiredEvent event)
afterActivationFired in interface AgendaEventListenerAgendaEventListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||