Kieker 1.9

kieker.tools.traceAnalysis.systemModel
Class MessageTrace

java.lang.Object
  extended by kieker.tools.traceAnalysis.systemModel.AbstractTrace
      extended by kieker.tools.traceAnalysis.systemModel.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
 
Fields inherited from class kieker.tools.traceAnalysis.systemModel.AbstractTrace
NO_TRACE_ID
 
Constructor Summary
MessageTrace(long traceId, List<AbstractMessage> seq)
          Creates a new instance of this class using the given parameters.
MessageTrace(long traceId, String sessionId, List<AbstractMessage> seq)
          Creates a new instance of this class using the given parameters.
 
Method Summary
 boolean equals(Object obj)
           
 List<AbstractMessage> getSequenceAsVector()
          Delivers the sequence stored in this message trace as a vector (a list).
 int hashCode()
          
 String toString()
           
 
Methods inherited from class kieker.tools.traceAnalysis.systemModel.AbstractTrace
getSessionId, getTraceId, getTraceInformation
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageTrace

public MessageTrace(long traceId,
                    List<AbstractMessage> seq)
Creates a new instance of this class using the given parameters.

Parameters:
traceId - The ID for this trace.
seq - The list of messages this trace consists of.

MessageTrace

public MessageTrace(long traceId,
                    String sessionId,
                    List<AbstractMessage> seq)
Creates a new instance of this class using the given parameters.

Parameters:
traceId - The ID for this trace.
sessionId - The ID of the current session.
seq - The list of messages this trace consists of.
Method Detail

getSequenceAsVector

public final List<AbstractMessage> getSequenceAsVector()
Delivers the sequence stored in this message trace as a vector (a list).

Returns:
A list containing the whole trace.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Description copied from class: AbstractTrace

Overrides:
hashCode in class AbstractTrace

equals

public boolean equals(Object obj)
Specified by:
equals in class AbstractTrace

Kieker 1.9

Copyright 2014 Kieker Project, http://kieker-monitoring.net