Package kieker.model.system.model
Class AbstractSession<T extends AbstractTrace>
java.lang.Object
kieker.model.system.model.AbstractSession<T>
- Type Parameters:
T- The concrete type of trace this session is based on
- Direct Known Subclasses:
ExecutionTraceBasedSession,MessageTraceBasedSession
public abstract class AbstractSession<T extends AbstractTrace>
extends java.lang.Object
Sessions group traces which belong to the same high-level user interaction.
- Since:
- 1.10
-
Constructor Summary
Constructors Constructor Description AbstractSession(java.lang.String sessionId)Creates a new abstract session with the given session ID. -
Method Summary
Modifier and Type Method Description voidaddTrace(T trace)Adds a trace to this session.protected java.util.SortedSet<T>getContainedTraces()protected longgetEndTime()longgetEndTimestamp()Returns this trace's end timestamp.protected abstract java.util.Comparator<? super T>getOrderComparator()java.lang.StringgetSessionId()Returns this session's session ID.protected longgetStartTime()longgetStartTimestamp()Returns this trace's start timestamp.java.util.SortedSet<T>getStateContainedTraces()Returns the traces contained in this session.voidsetCompleted()Marks this session as completed, i.e.protected voidsetEndTime(long endTime)protected voidsetStartTime(long startTime)protected voidsetState(kieker.model.system.model.AbstractSession.ISessionState<T> state)
-
Constructor Details
-
AbstractSession
public AbstractSession(java.lang.String sessionId)Creates a new abstract session with the given session ID.- Parameters:
sessionId- The session ID for this session
-
-
Method Details
-
getSessionId
public java.lang.String getSessionId()Returns this session's session ID.- Returns:
- See above
-
addTrace
Adds a trace to this session.- Parameters:
trace- The trace to add.
-
getStateContainedTraces
Returns the traces contained in this session.- Returns:
- See above
-
getStartTimestamp
public long getStartTimestamp()Returns this trace's start timestamp.- Returns:
- See above
-
getEndTimestamp
public long getEndTimestamp()Returns this trace's end timestamp.- Returns:
- See above
-
getStartTime
protected long getStartTime() -
getEndTime
protected long getEndTime() -
setStartTime
protected void setStartTime(long startTime) -
setEndTime
protected void setEndTime(long endTime) -
setState
-
getContainedTraces
-
setCompleted
public void setCompleted()Marks this session as completed, i.e. prevents any future changes. -
getOrderComparator
-