|
Kieker 1.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.tools.traceAnalysis.systemModel.AbstractTrace kieker.tools.traceAnalysis.systemModel.ExecutionTrace
public class ExecutionTrace
This class is a container for a whole trace of executions (represented as instances of Execution
).
Note that no assumptions about the TimeUnit
used for the
timestamps are made.
Field Summary |
---|
Fields inherited from class kieker.tools.traceAnalysis.systemModel.AbstractTrace |
---|
NO_TRACE_ID |
Constructor Summary | |
---|---|
ExecutionTrace(long traceId)
Creates a new instance of this class using the given parameters. |
|
ExecutionTrace(long traceId,
String sessionId)
Creates a new instance of this class using the given parameters. |
Method Summary | |
---|---|
void |
add(Execution execution)
Adds an execution to the trace. |
static Comparator<Execution> |
createExecutionTraceComparator()
Returns an instance of the Comparator used by the internal TreeSet to
compare Execution s. |
boolean |
equals(Object obj)
Returns whether this Execution Trace and the passed Object are equal. |
long |
getDuration()
Returns the duration of this (possibly incomplete) trace. |
int |
getLength()
Returns the length of this trace in terms of the number of contained executions. |
int |
getMaxEoi()
Returns the maximum execution order index (eoi) value within the trace. |
int |
getMaxEss()
Returns the maximum execution stack size (ess) value, i.e., the maximum stack depth, within the trace. |
long |
getMaxTout()
Returns the maximum timestamp value of an execution return in this trace. |
int |
getMinEoi()
Returns the minimum execution order index (eoi) value within the trace. |
long |
getMinTin()
Returns the minimum timestamp of an execution start in this trace. |
SortedSet<Execution> |
getTraceAsSortedExecutionSet()
Returns a sorted set (unmodifiable) of Execution s in this trace. |
int |
hashCode()
|
MessageTrace |
toMessageTrace(Execution rootExecution)
Returns the message trace representation for this trace. The transformation to a message trace is only computed during the first execution of this method. |
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 |
---|
public ExecutionTrace(long traceId)
traceId
- The ID of this trace.public ExecutionTrace(long traceId, String sessionId)
traceId
- The ID of this trace.sessionId
- The ID of the current session.Method Detail |
---|
public void add(Execution execution) throws InvalidTraceException
execution
- The execution object which will be added to this trace.
InvalidTraceException
- If the traceId of the passed Execution object is not the same as the traceId of this ExecutionTrace object.public MessageTrace toMessageTrace(Execution rootExecution) throws InvalidTraceException
rootExecution
- The root execution object.
InvalidTraceException
- If the given execution is somehow inconsistent or invalid.public final SortedSet<Execution> getTraceAsSortedExecutionSet()
Execution
s in this trace.
Note that the returned data structure is the (wrapped )internal data structure of this ExecutionTrace
object, to which further elements may be added
by the add(Execution)
method. Consider to create a copy
of the returned list, while
synchronizing on this (i.e., the ExecutionTrace
) object.
Execution
s in this tracepublic final int getLength()
public String toString()
toString
in class Object
public int getMaxEss()
public int getMaxEoi()
public int getMinEoi()
public long getDuration()
TimeUnit
are made.
public long getMaxTout()
public long getMinTin()
public int hashCode()
AbstractTrace
hashCode
in class AbstractTrace
public boolean equals(Object obj)
equals
in class AbstractTrace
obj
- The object to be compared for equality with this.
public static final Comparator<Execution> createExecutionTraceComparator()
Comparator
used by the internal TreeSet
to
compare Execution
s.
|
Kieker 1.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |