T
- The concrete type of trace this session is based onpublic abstract class AbstractSession<T extends AbstractTrace>
extends java.lang.Object
Constructor and Description |
---|
AbstractSession(java.lang.String sessionId)
Creates a new abstract session with the given session ID.
|
Modifier and Type | Method and Description |
---|---|
void |
addTrace(T trace)
Adds a trace to this session.
|
java.util.SortedSet<T> |
getContainedTraces()
Returns the traces contained in this session.
|
long |
getEndTimestamp()
Returns this trace's end timestamp.
|
protected abstract java.util.Comparator<? super T> |
getOrderComparator() |
java.lang.String |
getSessionId()
Returns this session's session ID.
|
long |
getStartTimestamp()
Returns this trace's start timestamp.
|
void |
setCompleted()
Marks this session as completed, i.e.
|
public AbstractSession(java.lang.String sessionId)
sessionId
- The session ID for this sessionpublic java.lang.String getSessionId()
public void addTrace(T trace)
trace
- The trace to add.public java.util.SortedSet<T> getContainedTraces()
public long getStartTimestamp()
public long getEndTimestamp()
public void setCompleted()
protected abstract java.util.Comparator<? super T> getOrderComparator()
Copyright 2017 Kieker Project, http://kieker-monitoring.net