|
||||||||||
| 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,
WorkingMemory workingMemory)
|
void |
activationCreated(ActivationCreatedEvent event,
WorkingMemory workingMemory)
|
void |
addFilter(ILogEventFilter filter)
Adds the given filter to the list of filters for this event log. |
void |
afterActivationFired(AfterActivationFiredEvent event,
WorkingMemory workingMemory)
|
void |
agendaGroupPopped(AgendaGroupPoppedEvent event,
WorkingMemory workingMemory)
|
void |
agendaGroupPushed(AgendaGroupPushedEvent event,
WorkingMemory workingMemory)
|
void |
beforeActivationFired(BeforeActivationFiredEvent event,
WorkingMemory workingMemory)
|
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, WorkingMemory workingMemory)
activationCreated in interface AgendaEventListenerAgendaEventListenerpublic void activationCancelled(ActivationCancelledEvent event, WorkingMemory workingMemory)
activationCancelled in interface AgendaEventListenerAgendaEventListenerpublic void beforeActivationFired(BeforeActivationFiredEvent event, WorkingMemory workingMemory)
beforeActivationFired in interface AgendaEventListenerAgendaEventListenerpublic void afterActivationFired(AfterActivationFiredEvent event, WorkingMemory workingMemory)
afterActivationFired in interface AgendaEventListenerAgendaEventListenerpublic void agendaGroupPopped(AgendaGroupPoppedEvent event, WorkingMemory workingMemory)
agendaGroupPopped in interface AgendaEventListenerpublic void agendaGroupPushed(AgendaGroupPushedEvent event, WorkingMemory workingMemory)
agendaGroupPushed in interface AgendaEventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||