|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orc.trace.events.Event
public abstract class Event
Base class for trace events.
Field Summary | |
---|---|
protected EventCursor |
cursor
|
protected SourceLocation |
location
|
protected long |
seq
|
protected Handle<ForkEvent> |
thread
|
Constructor Summary | |
---|---|
Event()
|
Method Summary | ||
---|---|---|
abstract
|
accept(Visitor<V> visitor)
|
|
EventCursor |
getCursor()
Get the event cursor which produced this event. |
|
Term |
getProperty(java.lang.String key)
|
|
long |
getSeq()
Get the sequence number, which uniquely identifies this event. |
|
SourceLocation |
getSourceLocation()
|
|
Term |
getSourceLocationTerm()
|
|
ForkEvent |
getThread()
A thread is represented by the ForkEvent which spawned it. |
|
abstract java.lang.String |
getType()
Return a string name for the type of event. |
|
void |
prettyPrint(java.io.Writer out,
int indent)
Pretty-print the term to out. |
|
void |
prettyPrintProperties(java.io.Writer out,
int indent)
|
|
protected void |
prettyPrintProperty(java.io.Writer out,
int indent,
java.lang.String key,
Term value)
|
|
void |
setCursor(EventCursor cursor)
Used by implementations of EventCursor to
associate this event with a location in an event stream. |
|
void |
setSeq(long seq)
Used by implementations of EventCursor to
set the event's sequence number. |
|
void |
setSourceLocation(SourceLocation location)
|
|
void |
setThread(ForkEvent thread)
|
|
java.lang.String |
toString()
Return a human-readable short label for the event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Handle<ForkEvent> thread
protected SourceLocation location
protected transient EventCursor cursor
protected transient long seq
Constructor Detail |
---|
public Event()
Method Detail |
---|
public void setThread(ForkEvent thread)
public ForkEvent getThread()
ForkEvent
which spawned it.
public void setSourceLocation(SourceLocation location)
setSourceLocation
in interface Locatable
public SourceLocation getSourceLocation()
getSourceLocation
in interface Located
public EventCursor getCursor()
public void setCursor(EventCursor cursor)
EventCursor
to
associate this event with a location in an event stream.
Clients shouldn't call this.
public long getSeq()
public void setSeq(long seq)
EventCursor
to
set the event's sequence number.
Clients shouldn't call this.
public java.lang.String toString()
toString
in class java.lang.Object
public abstract java.lang.String getType()
public abstract <V> V accept(Visitor<V> visitor)
public Term getProperty(java.lang.String key)
getProperty
in interface RecordTerm
public Term getSourceLocationTerm()
public void prettyPrintProperties(java.io.Writer out, int indent) throws java.io.IOException
java.io.IOException
protected void prettyPrintProperty(java.io.Writer out, int indent, java.lang.String key, Term value) throws java.io.IOException
java.io.IOException
public void prettyPrint(java.io.Writer out, int indent) throws java.io.IOException
Term
prettyPrint
in interface Term
java.io.IOException
Terms.indent(Writer, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |