Package kieker.model.system.model
Class TraceInformation
java.lang.Object
kieker.model.system.model.TraceInformation
public class TraceInformation
extends java.lang.Object
This class stores trace meta-information, such as the trace ID. This kept separate from the actual trace
information to allow references to traces without the need to keep the trace itself.
- Since:
- 1.6
-
Constructor Summary
Constructors Constructor Description TraceInformation(long traceId, java.lang.String sessionId)Creates a new trace information object using the given data. -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object other)java.lang.StringgetSessionId()Returns the trace's session ID, if any.longgetTraceId()Returns the trace ID.inthashCode()
-
Constructor Details
-
TraceInformation
public TraceInformation(long traceId, java.lang.String sessionId)Creates a new trace information object using the given data.- Parameters:
traceId- The trace ID to usesessionId- The session ID to use
-
-
Method Details
-
getTraceId
public long getTraceId()Returns the trace ID.- Returns:
- See above
-
getSessionId
public java.lang.String getSessionId()Returns the trace's session ID, if any.- Returns:
- See above. Note that this ID may be
null.
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equalsin classjava.lang.Object
-