public abstract class AbstractTrace
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SESSION_ID
Default value for the session ID.
|
static java.lang.String |
NO_TRACE_ID
This constant can be used as an ID to show that the trace has no ID.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractTrace()
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.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(java.lang.Object obj) |
abstract long |
getEndTimestamp()
Returns this trace's end timestamp.
|
java.lang.String |
getSessionId()
Delivers the ID of the session.
|
abstract long |
getStartTimestamp()
Returns this trace's start timestamp.
|
long |
getTraceId()
Returns this trace's trace ID.
|
TraceInformation |
getTraceInformation()
Returns information about this trace.
|
int |
hashCode() |
public static final java.lang.String DEFAULT_SESSION_ID
public static final java.lang.String NO_TRACE_ID
protected AbstractTrace()
public AbstractTrace(long traceId)
traceId
- The trace ID to use for the new tracepublic AbstractTrace(long traceId, java.lang.String sessionId)
traceId
- The trace ID to use for the new tracesessionId
- The session ID to use for the new tracepublic TraceInformation getTraceInformation()
public long getTraceId()
public java.lang.String getSessionId()
public int hashCode()
hashCode
in class java.lang.Object
public abstract boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public abstract long getStartTimestamp()
public abstract long getEndTimestamp()
Copyright 2017 Kieker Project, http://kieker-monitoring.net