Package kieker.model.system.model
Class Execution
java.lang.Object
kieker.model.system.model.Execution
public class Execution
extends java.lang.Object
This class represents an execution of an operation of an allocated component.
The class is used within the trace analysis tool.
Note that no assumptions about the
TimeUnit used
for the timestamps are made
(getTin() and
getTout()).- Since:
- 1.1
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNO_SESSION_IDThis constant marks that an execution has no session ID. -
Constructor Summary
Constructors Constructor Description Execution(Operation op, AllocationComponent allocationComponent, long traceId, int eoi, int ess, long tin, long tout, boolean assumed)Creates a new Execution instance.Execution(Operation op, AllocationComponent allocationComponent, long traceId, java.lang.String sessionId, int eoi, int ess, long tin, long tout, boolean assumed)Creates a new Execution instance. -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)Compares thisExecutionwith the given object with respect to type and fields.AllocationComponentgetAllocationComponent()intgetEoi()intgetEss()OperationgetOperation()java.lang.StringgetSessionId()Returns the sessionId and a default sessionId if no sessionId assigned.longgetTin()longgetTout()longgetTraceId()inthashCode()booleanisAssumed()java.lang.StringtoString()
-
Field Details
-
NO_SESSION_ID
public static final java.lang.String NO_SESSION_IDThis constant marks that an execution has no session ID.- See Also:
- Constant Field Values
-
-
Constructor Details
-
Execution
public Execution(Operation op, AllocationComponent allocationComponent, long traceId, java.lang.String sessionId, int eoi, int ess, long tin, long tout, boolean assumed)Creates a new Execution instance.- Parameters:
op- The operation of the execution.allocationComponent- The allocation component.traceId- The ID of the trace.sessionId- The ID of the session.eoi- The execution order index.ess- The execution stack size.tin- The timestamp the execution started.tout- The timestamp the execution finished.assumed- Determines whether the execution is assumed or not.
-
Execution
public Execution(Operation op, AllocationComponent allocationComponent, long traceId, int eoi, int ess, long tin, long tout, boolean assumed)Creates a new Execution instance. The sessionId is set to a default value.- Parameters:
op- The operation of the execution.allocationComponent- The allocation component.traceId- The ID of the trace.eoi- The execution order index.ess- The execution stack size.tin- The timestamp the execution started.tout- The timestamp the execution finished.assumed- Determines whether the execution is assumed or not.
-
-
Method Details
-
getAllocationComponent
-
getEoi
public final int getEoi() -
getEss
public final int getEss() -
getOperation
-
getSessionId
public final java.lang.String getSessionId()Returns the sessionId and a default sessionId if no sessionId assigned. The return value won't be null.- Returns:
- the sessionId.
-
getTin
public final long getTin() -
getTout
public final long getTout() -
getTraceId
public final long getTraceId() -
isAssumed
public boolean isAssumed() -
equals
public boolean equals(java.lang.Object obj)Compares thisExecutionwith the given object with respect to type and fields. All fields but theisAssumed()are considered for comparison.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- The object to be compared with this instance.- Returns:
- true if and only if the current object and the given object have equal values.
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-