public class WorkingMemoryFileLogger extends WorkingMemoryLogger
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
protected boolean |
terminate |
isPhreak
Constructor and Description |
---|
WorkingMemoryFileLogger() |
WorkingMemoryFileLogger(org.kie.internal.event.KnowledgeRuntimeEventManager session) |
WorkingMemoryFileLogger(WorkingMemory workingMemory)
Creates a new WorkingMemoryFileLogger for the given working memory.
|
Modifier and Type | Method and Description |
---|---|
void |
logEventCreated(LogEvent logEvent)
This method is invoked every time a new log event is created.
|
void |
readExternal(ObjectInput in) |
void |
setFileName(String fileName)
Sets the name of the file the events are logged in.
|
void |
setMaxEventsInMemory(int maxEventsInMemory)
Sets the maximum number of log events that are allowed in memory.
|
void |
setSplit(boolean split) |
void |
stop() |
void |
writeExternal(ObjectOutput out) |
void |
writeToDisk()
All events in the log are written to file.
|
addFilter, afterFunctionRemoved, afterKieBaseLocked, afterKieBaseUnlocked, afterKiePackageAdded, afterKiePackageRemoved, afterMatchFired, afterNodeLeft, afterNodeTriggered, afterProcessAdded, afterProcessCompleted, afterProcessRemoved, afterProcessStarted, afterRuleAdded, afterRuleFlowGroupActivated, afterRuleFlowGroupDeactivated, afterRuleRemoved, afterVariableChanged, agendaGroupPopped, agendaGroupPushed, beforeFunctionRemoved, beforeKieBaseLocked, beforeKieBaseUnlocked, beforeKiePackageAdded, beforeKiePackageRemoved, beforeMatchFired, beforeNodeLeft, beforeNodeTriggered, beforeProcessAdded, beforeProcessCompleted, beforeProcessRemoved, beforeProcessStarted, beforeRuleAdded, beforeRuleFlowGroupActivated, beforeRuleFlowGroupDeactivated, beforeRuleRemoved, beforeVariableChanged, clearFilters, matchCancelled, matchCreated, objectDeleted, objectInserted, objectUpdated, removeFilter
protected static final transient org.slf4j.Logger logger
protected boolean terminate
public WorkingMemoryFileLogger()
public WorkingMemoryFileLogger(WorkingMemory workingMemory)
public WorkingMemoryFileLogger(org.kie.internal.event.KnowledgeRuntimeEventManager session)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in class WorkingMemoryLogger
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in class WorkingMemoryLogger
IOException
public void setFileName(String fileName)
fileName
- The name of the file the events should be logged in.public void writeToDisk()
public void setMaxEventsInMemory(int maxEventsInMemory)
maxEventsInMemory
- The maximum number of events in memory.public void logEventCreated(LogEvent logEvent)
WorkingMemoryLogger
logEventCreated
in class WorkingMemoryLogger
public void setSplit(boolean split)
public void stop()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.