|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 WorkingMemoryEventListener
WorkingMemoryEventListener
public void objectModified(ObjectModifiedEvent event)
objectModified
in interface WorkingMemoryEventListener
WorkingMemoryEventListener
public void objectRetracted(ObjectRetractedEvent event)
objectRetracted
in interface WorkingMemoryEventListener
WorkingMemoryEventListener
public void activationCreated(ActivationCreatedEvent event, WorkingMemory workingMemory)
activationCreated
in interface AgendaEventListener
AgendaEventListener
public void activationCancelled(ActivationCancelledEvent event, WorkingMemory workingMemory)
activationCancelled
in interface AgendaEventListener
AgendaEventListener
public void beforeActivationFired(BeforeActivationFiredEvent event, WorkingMemory workingMemory)
beforeActivationFired
in interface AgendaEventListener
AgendaEventListener
public void afterActivationFired(AfterActivationFiredEvent event, WorkingMemory workingMemory)
afterActivationFired
in interface AgendaEventListener
AgendaEventListener
public void agendaGroupPopped(AgendaGroupPoppedEvent event, WorkingMemory workingMemory)
agendaGroupPopped
in interface AgendaEventListener
public 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 |