Kieker 1.12

kieker.tools.traceAnalysis.systemModel
Class AbstractSession<T extends AbstractTrace>

java.lang.Object
  extended by kieker.tools.traceAnalysis.systemModel.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
Author:
Holger Knoche

Constructor Summary
AbstractSession(java.lang.String sessionId)
          Creates a new abstract session with the given session ID.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

getSessionId

public java.lang.String getSessionId()
Returns this session's session ID.

Returns:
See above

addTrace

public void addTrace(T trace)
Adds a trace to this session.

Parameters:
trace - The trace to add.

getContainedTraces

public java.util.SortedSet<T> getContainedTraces()
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

setCompleted

public void setCompleted()
Marks this session as completed, i.e. prevents any future changes.


getOrderComparator

protected abstract java.util.Comparator<? super T> getOrderComparator()

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net