Package kieker.model.system.model
Class MessageTrace
java.lang.Object
kieker.model.system.model.AbstractTrace
kieker.model.system.model.MessageTrace
public class MessageTrace extends AbstractTrace
This class is a container for a whole trace of messages (represented as actual instances of
AbstractMessage).- Since:
- 1.1
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MessageTrace(long traceId, java.lang.String sessionId, java.util.List<AbstractMessage> seq)Creates a new message trace from the given data.MessageTrace(long traceId, java.util.List<AbstractMessage> seq)Creates a new message trace from the given data. -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetEndTimestamp()Returns this trace's end timestamp.java.util.List<AbstractMessage>getSequenceAsVector()Returns the message sequence contained in this trace as an (unmodifiable) list.longgetStartTimestamp()Returns this trace's start timestamp.inthashCode()java.lang.StringtoString()Methods inherited from class kieker.model.system.model.AbstractTrace
getSessionId, getTraceId, getTraceInformation
-
Constructor Details
-
MessageTrace
Creates a new message trace from the given data.- Parameters:
traceId- The ID for this message traceseq- The messages contained in this message trace
-
MessageTrace
Creates a new message trace from the given data.- Parameters:
traceId- The ID for this trace.sessionId- The ID of the current session.seq- The list of messages this trace consists of.
-
-
Method Details
-
getSequenceAsVector
Returns the message sequence contained in this trace as an (unmodifiable) list.- Returns:
- See above
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()Description copied from class:AbstractTrace- Overrides:
hashCodein classAbstractTrace
-
getStartTimestamp
public long getStartTimestamp()Description copied from class:AbstractTraceReturns this trace's start timestamp.- Specified by:
getStartTimestampin classAbstractTrace- Returns:
- See above
-
getEndTimestamp
public long getEndTimestamp()Description copied from class:AbstractTraceReturns this trace's end timestamp.- Specified by:
getEndTimestampin classAbstractTrace- Returns:
- See above
-
equals
public boolean equals(java.lang.Object obj)- Specified by:
equalsin classAbstractTrace
-