kieker.tools.traceAnalysis.filter.flow
Class EventRecordTrace
java.lang.Object
kieker.tools.traceAnalysis.systemModel.AbstractTrace
kieker.tools.traceAnalysis.filter.flow.EventRecordTrace
- All Implemented Interfaces:
- Iterable<AbstractTraceEvent>
public class EventRecordTrace
- extends AbstractTrace
- implements Iterable<AbstractTraceEvent>
- Author:
- Andre van Hoorn
EventRecordTrace
public EventRecordTrace(long traceId)
- Parameters:
traceId
-
EventRecordTrace
public EventRecordTrace(long traceId,
String sessionId)
EventRecordTrace
public EventRecordTrace(long traceId,
String sessionId,
String hostname)
add
public void add(AbstractTraceEvent execution)
throws InvalidTraceException
- Adds a
AbstractTraceEvent
to the trace.
The given event must have the AbstractTrace.getTraceId()
of this trace and another event with
AbstractTraceEvent.getOrderIndex()
must not have been added
before.
- Parameters:
execution
-
- Throws:
InvalidTraceException
- if one of the constraints is violated.
hashCode
public int hashCode()
- Overrides:
hashCode
in class AbstractTrace
equals
public boolean equals(Object obj)
- Specified by:
equals
in class AbstractTrace
toString
public String toString()
- Overrides:
toString
in class Object
getSessionId
public String getSessionId()
- Overrides:
getSessionId
in class AbstractTrace
- Returns:
- the mySessionId
setSessionId
public void setSessionId(String sessionId)
- Parameters:
sessionId
- the mySessionId to set
iterator
public Iterator<AbstractTraceEvent> iterator()
- Returns the
AbstractTraceEvent
s ordered by AbstractTraceEvent.getOrderIndex()
- Specified by:
iterator
in interface Iterable<AbstractTraceEvent>
getMinOrderIndex
public int getMinOrderIndex()
- Returns:
- the minOrderIndex
getMaxOrderIndex
public int getMaxOrderIndex()
- Returns:
- the maxOrderIndex
getMinTimestamp
public long getMinTimestamp()
- Returns:
- the minTimestamp
getMaxTimestamp
public long getMaxTimestamp()
- Returns:
- the maxTimestamp
setHostname
public void setHostname(String hostname)
- Parameters:
hostname
- the hostName to set
getHostname
public String getHostname()
- Returns:
- the hostName
eventList
public List<AbstractTraceEvent> eventList()
- Returns the list of
AbstractTraceEvent
s, ordered by
AbstractTraceEvent.getOrderIndex()
.
- Returns:
- The event list.
Copyright 2012 the Kieker Project, http://kieker-monitoring.net>