当前页面:
在线文档首页 >
JBoss RULES 3.0.6 API 英文版文档
ObjectLogEvent - JBoss RULES 3.0.6 API 英文版文档
org.drools.audit.event
Class ObjectLogEvent
java.lang.Object
org.drools.audit.event.LogEvent
org.drools.audit.event.ObjectLogEvent
public class ObjectLogEvent
- extends LogEvent
An object event logged by the WorkingMemoryLogger.
It is a snapshot of the event as it was thrown by the working memory.
It contains the fact id and a String represention of the object
at the time the event was logged.
Constructor Summary |
ObjectLogEvent(int type,
long factId,
java.lang.String objectToString)
Create a new activation log event. |
Method Summary |
long |
getFactId()
Returns the fact id of the object this event is about. |
java.lang.String |
getObjectToString()
Returns a toString of the fact this event is about at the
time the event was created. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ObjectLogEvent
public ObjectLogEvent(int type,
long factId,
java.lang.String objectToString)
- Create a new activation log event.
- Parameters:
type
- The type of event. This can only be LogEvent.OBJECT_ASSERTED,
LogEvent.OBJECT_MODIFIED or LogEvent.OBJECT_RETRACTED.factId
- The id of the factobjectToString
- A toString of the fact
getFactId
public long getFactId()
- Returns the fact id of the object this event is about.
- Returns:
- the id of the fact
getObjectToString
public java.lang.String getObjectToString()
- Returns a toString of the fact this event is about at the
time the event was created.
- Returns:
- the toString of the fact
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object