org.drools.audit
Class WorkingMemoryInMemoryLogger

java.lang.Object
  extended by org.drools.audit.WorkingMemoryLogger
      extended by org.drools.audit.WorkingMemoryInMemoryLogger
All Implemented Interfaces:
Externalizable, Serializable, EventListener, AgendaEventListener, org.drools.event.process.ProcessEventListener, RuleBaseEventListener, WorkingMemoryEventListener

public class WorkingMemoryInMemoryLogger
extends WorkingMemoryLogger

A logger of events generated by a working memory. It stores its information in memory, so it can be retrieved later.

See Also:
Serialized Form

Constructor Summary
WorkingMemoryInMemoryLogger()
           
WorkingMemoryInMemoryLogger(org.drools.event.KnowledgeRuntimeEventManager session)
           
WorkingMemoryInMemoryLogger(WorkingMemory workingMemory)
           
 
Method Summary
 void clear()
          Clears all the events in the log.
 String getEvents()
           
 List<LogEvent> getLogEvents()
           
 void logEventCreated(LogEvent logEvent)
          This method is invoked every time a new log event is created.
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.audit.WorkingMemoryLogger
activationCancelled, activationCreated, addFilter, afterActivationFired, afterFunctionRemoved, afterNodeLeft, afterNodeTriggered, afterPackageAdded, afterPackageRemoved, afterProcessAdded, afterProcessCompleted, afterProcessRemoved, afterProcessStarted, afterRuleAdded, afterRuleBaseLocked, afterRuleBaseUnlocked, afterRuleFlowGroupActivated, afterRuleFlowGroupDeactivated, afterRuleRemoved, afterVariableChanged, agendaGroupPopped, agendaGroupPushed, beforeActivationFired, beforeFunctionRemoved, beforeNodeLeft, beforeNodeTriggered, beforePackageAdded, beforePackageRemoved, beforeProcessAdded, beforeProcessCompleted, beforeProcessRemoved, beforeProcessStarted, beforeRuleAdded, beforeRuleBaseLocked, beforeRuleBaseUnlocked, beforeRuleFlowGroupActivated, beforeRuleFlowGroupDeactivated, beforeRuleRemoved, beforeVariableChanged, clearFilters, objectInserted, objectRetracted, objectUpdated, removeFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkingMemoryInMemoryLogger

public WorkingMemoryInMemoryLogger()

WorkingMemoryInMemoryLogger

public WorkingMemoryInMemoryLogger(WorkingMemory workingMemory)

WorkingMemoryInMemoryLogger

public WorkingMemoryInMemoryLogger(org.drools.event.KnowledgeRuntimeEventManager session)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class WorkingMemoryLogger
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class WorkingMemoryLogger
Throws:
IOException

getEvents

public String getEvents()

clear

public void clear()
Clears all the events in the log.


logEventCreated

public void logEventCreated(LogEvent logEvent)
Description copied from class: WorkingMemoryLogger
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.

Specified by:
logEventCreated in class WorkingMemoryLogger
See Also:
WorkingMemoryLogger

getLogEvents

public List<LogEvent> getLogEvents()


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