Package kieker.model.system.model
Class AbstractTrace
java.lang.Object
kieker.model.system.model.AbstractTrace
- Direct Known Subclasses:
ExecutionTrace,MessageTrace
public abstract class AbstractTrace
extends java.lang.Object
This is the abstract base for a trace (like a message trace e.g.).
- Since:
- 1.2
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_SESSION_IDDefault value for the session ID.static java.lang.StringNO_TRACE_IDThis constant can be used as an ID to show that the trace has no ID. -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTrace()Default constructor.AbstractTrace(long traceId)Creates a new abstract trace with the given trace ID and a default session ID.AbstractTrace(long traceId, java.lang.String sessionId)Creates a new abstract trace with the given parameters. -
Method Summary
Modifier and Type Method Description abstract booleanequals(java.lang.Object obj)abstract longgetEndTimestamp()Returns this trace's end timestamp.java.lang.StringgetSessionId()Delivers the ID of the session.abstract longgetStartTimestamp()Returns this trace's start timestamp.longgetTraceId()Returns this trace's trace ID.TraceInformationgetTraceInformation()Returns information about this trace.inthashCode()
-
Field Details
-
DEFAULT_SESSION_ID
public static final java.lang.String DEFAULT_SESSION_IDDefault value for the session ID.- See Also:
- Constant Field Values
-
NO_TRACE_ID
public static final java.lang.String NO_TRACE_IDThis constant can be used as an ID to show that the trace has no ID.- See Also:
- Constant Field Values
-
-
Constructor Details
-
AbstractTrace
protected AbstractTrace()Default constructor. -
AbstractTrace
public AbstractTrace(long traceId)Creates a new abstract trace with the given trace ID and a default session ID.- Parameters:
traceId- The trace ID to use for the new trace
-
AbstractTrace
public AbstractTrace(long traceId, java.lang.String sessionId)Creates a new abstract trace with the given parameters.- Parameters:
traceId- The trace ID to use for the new tracesessionId- The session ID to use for the new trace
-
-
Method Details
-
getTraceInformation
Returns information about this trace.- Returns:
- See above
-
getTraceId
public long getTraceId()Returns this trace's trace ID.- Returns:
- See above
-
getSessionId
public java.lang.String getSessionId()Delivers the ID of the session.- Returns:
- The session ID.
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public abstract boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
getStartTimestamp
public abstract long getStartTimestamp()Returns this trace's start timestamp.- Returns:
- See above
-
getEndTimestamp
public abstract long getEndTimestamp()Returns this trace's end timestamp.- Returns:
- See above
-