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
- Author:
- Andre van Hoorn
-
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 boolean
equals(java.lang.Object obj)
long
getEndTimestamp()
Returns this trace's end timestamp.java.util.List<AbstractMessage>
getSequenceAsVector()
Returns the message sequence contained in this trace as an (unmodifiable) list.long
getStartTimestamp()
Returns this trace's start timestamp.int
hashCode()
java.lang.String
toString()
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:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()Description copied from class:AbstractTrace
- Overrides:
hashCode
in classAbstractTrace
-
getStartTimestamp
public long getStartTimestamp()Description copied from class:AbstractTrace
Returns this trace's start timestamp.- Specified by:
getStartTimestamp
in classAbstractTrace
- Returns:
- See above
-
getEndTimestamp
public long getEndTimestamp()Description copied from class:AbstractTrace
Returns this trace's end timestamp.- Specified by:
getEndTimestamp
in classAbstractTrace
- Returns:
- See above
-
equals
public boolean equals(java.lang.Object obj)- Specified by:
equals
in classAbstractTrace
-