org.drools.audit.event
Class LogEvent

java.lang.Object
  extended by org.drools.audit.event.LogEvent
Direct Known Subclasses:
ActivationLogEvent, ObjectLogEvent, RuleBaseLogEvent, RuleFlowGroupLogEvent, RuleFlowLogEvent

public class LogEvent
extends Object

An event logged by the WorkingMemoryLogger. It is a snapshot of the event as it was thrown by the working memory.


Field Summary
static int ACTIVATION_CANCELLED
           
static int ACTIVATION_CREATED
           
static int AFTER_ACTIVATION_FIRE
           
static int AFTER_PACKAGE_ADDED
           
static int AFTER_PACKAGE_REMOVED
           
static int AFTER_RULE_ADDED
           
static int AFTER_RULE_REMOVED
           
static int AFTER_RULEFLOW_COMPLETED
           
static int AFTER_RULEFLOW_CREATED
           
static int AFTER_RULEFLOW_GROUP_ACTIVATED
           
static int AFTER_RULEFLOW_GROUP_DEACTIVATED
           
static int AFTER_RULEFLOW_NODE_EXITED
           
static int AFTER_RULEFLOW_NODE_TRIGGERED
           
static int AFTER_TASK_INSTANCE_COMPLETED
           
static int AFTER_TASK_INSTANCE_CREATED
           
static int AFTER_VARIABLE_INSTANCE_CHANGED
           
static int BEFORE_ACTIVATION_FIRE
           
static int BEFORE_PACKAGE_ADDED
           
static int BEFORE_PACKAGE_REMOVED
           
static int BEFORE_RULE_ADDED
           
static int BEFORE_RULE_REMOVED
           
static int BEFORE_RULEFLOW_COMPLETED
           
static int BEFORE_RULEFLOW_CREATED
           
static int BEFORE_RULEFLOW_GROUP_ACTIVATED
           
static int BEFORE_RULEFLOW_GROUP_DEACTIVATED
           
static int BEFORE_RULEFLOW_NODE_EXITED
           
static int BEFORE_RULEFLOW_NODE_TRIGGERED
           
static int BEFORE_TASK_INSTANCE_COMPLETED
           
static int BEFORE_TASK_INSTANCE_CREATED
           
static int BEFORE_VARIABLE_INSTANCE_CHANGED
           
static int INSERTED
           
static int RETRACTED
           
static int UPDATED
           
 
Constructor Summary
LogEvent()
           
LogEvent(int type)
          Creates a new log event.
 
Method Summary
 int getType()
          Returns the type of the log event as defined in this class.
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSERTED

public static final int INSERTED
See Also:
Constant Field Values

UPDATED

public static final int UPDATED
See Also:
Constant Field Values

RETRACTED

public static final int RETRACTED
See Also:
Constant Field Values

ACTIVATION_CREATED

public static final int ACTIVATION_CREATED
See Also:
Constant Field Values

ACTIVATION_CANCELLED

public static final int ACTIVATION_CANCELLED
See Also:
Constant Field Values

BEFORE_ACTIVATION_FIRE

public static final int BEFORE_ACTIVATION_FIRE
See Also:
Constant Field Values

AFTER_ACTIVATION_FIRE

public static final int AFTER_ACTIVATION_FIRE
See Also:
Constant Field Values

BEFORE_RULEFLOW_CREATED

public static final int BEFORE_RULEFLOW_CREATED
See Also:
Constant Field Values

AFTER_RULEFLOW_CREATED

public static final int AFTER_RULEFLOW_CREATED
See Also:
Constant Field Values

BEFORE_RULEFLOW_COMPLETED

public static final int BEFORE_RULEFLOW_COMPLETED
See Also:
Constant Field Values

AFTER_RULEFLOW_COMPLETED

public static final int AFTER_RULEFLOW_COMPLETED
See Also:
Constant Field Values

BEFORE_RULEFLOW_GROUP_ACTIVATED

public static final int BEFORE_RULEFLOW_GROUP_ACTIVATED
See Also:
Constant Field Values

AFTER_RULEFLOW_GROUP_ACTIVATED

public static final int AFTER_RULEFLOW_GROUP_ACTIVATED
See Also:
Constant Field Values

BEFORE_RULEFLOW_GROUP_DEACTIVATED

public static final int BEFORE_RULEFLOW_GROUP_DEACTIVATED
See Also:
Constant Field Values

AFTER_RULEFLOW_GROUP_DEACTIVATED

public static final int AFTER_RULEFLOW_GROUP_DEACTIVATED
See Also:
Constant Field Values

BEFORE_PACKAGE_ADDED

public static final int BEFORE_PACKAGE_ADDED
See Also:
Constant Field Values

AFTER_PACKAGE_ADDED

public static final int AFTER_PACKAGE_ADDED
See Also:
Constant Field Values

BEFORE_PACKAGE_REMOVED

public static final int BEFORE_PACKAGE_REMOVED
See Also:
Constant Field Values

AFTER_PACKAGE_REMOVED

public static final int AFTER_PACKAGE_REMOVED
See Also:
Constant Field Values

BEFORE_RULE_ADDED

public static final int BEFORE_RULE_ADDED
See Also:
Constant Field Values

AFTER_RULE_ADDED

public static final int AFTER_RULE_ADDED
See Also:
Constant Field Values

BEFORE_RULE_REMOVED

public static final int BEFORE_RULE_REMOVED
See Also:
Constant Field Values

AFTER_RULE_REMOVED

public static final int AFTER_RULE_REMOVED
See Also:
Constant Field Values

BEFORE_RULEFLOW_NODE_TRIGGERED

public static final int BEFORE_RULEFLOW_NODE_TRIGGERED
See Also:
Constant Field Values

AFTER_RULEFLOW_NODE_TRIGGERED

public static final int AFTER_RULEFLOW_NODE_TRIGGERED
See Also:
Constant Field Values

BEFORE_RULEFLOW_NODE_EXITED

public static final int BEFORE_RULEFLOW_NODE_EXITED
See Also:
Constant Field Values

AFTER_RULEFLOW_NODE_EXITED

public static final int AFTER_RULEFLOW_NODE_EXITED
See Also:
Constant Field Values

BEFORE_TASK_INSTANCE_CREATED

public static final int BEFORE_TASK_INSTANCE_CREATED
See Also:
Constant Field Values

AFTER_TASK_INSTANCE_CREATED

public static final int AFTER_TASK_INSTANCE_CREATED
See Also:
Constant Field Values

BEFORE_TASK_INSTANCE_COMPLETED

public static final int BEFORE_TASK_INSTANCE_COMPLETED
See Also:
Constant Field Values

AFTER_TASK_INSTANCE_COMPLETED

public static final int AFTER_TASK_INSTANCE_COMPLETED
See Also:
Constant Field Values

BEFORE_VARIABLE_INSTANCE_CHANGED

public static final int BEFORE_VARIABLE_INSTANCE_CHANGED
See Also:
Constant Field Values

AFTER_VARIABLE_INSTANCE_CHANGED

public static final int AFTER_VARIABLE_INSTANCE_CHANGED
See Also:
Constant Field Values
Constructor Detail

LogEvent

public LogEvent()

LogEvent

public LogEvent(int type)
Creates a new log event.

Parameters:
type - The type of the log event.
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Throws:
IOException

getType

public int getType()
Returns the type of the log event as defined in this class.

Returns:
The type of the log event.


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.