Kieker 1.5

kieker.tools.traceAnalysis.filter.flow
Class EventRecordTrace

java.lang.Object
  extended by kieker.tools.traceAnalysis.systemModel.AbstractTrace
      extended by kieker.tools.traceAnalysis.filter.flow.EventRecordTrace
All Implemented Interfaces:
Iterable<AbstractTraceEvent>

public class EventRecordTrace
extends AbstractTrace
implements Iterable<AbstractTraceEvent>

Author:
Andre van Hoorn

Field Summary
 
Fields inherited from class kieker.tools.traceAnalysis.systemModel.AbstractTrace
NO_TRACE_ID
 
Constructor Summary
EventRecordTrace(long traceId)
           
EventRecordTrace(long traceId, String sessionId)
           
EventRecordTrace(long traceId, String sessionId, String hostname)
           
 
Method Summary
 void add(AbstractTraceEvent execution)
          Adds a AbstractTraceEvent to the trace.
 boolean equals(Object obj)
           
 List<AbstractTraceEvent> eventList()
          Returns the list of AbstractTraceEvents, ordered by AbstractTraceEvent.getOrderIndex().
 String getHostname()
           
 int getMaxOrderIndex()
           
 long getMaxTimestamp()
           
 int getMinOrderIndex()
           
 long getMinTimestamp()
           
 String getSessionId()
           
 int hashCode()
           
 Iterator<AbstractTraceEvent> iterator()
          Returns the AbstractTraceEvents ordered by AbstractTraceEvent.getOrderIndex()
 void setHostname(String hostname)
           
 void setSessionId(String sessionId)
           
 String toString()
           
 
Methods inherited from class kieker.tools.traceAnalysis.systemModel.AbstractTrace
getTraceId
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventRecordTrace

public EventRecordTrace(long traceId)
Parameters:
traceId -

EventRecordTrace

public EventRecordTrace(long traceId,
                        String sessionId)

EventRecordTrace

public EventRecordTrace(long traceId,
                        String sessionId,
                        String hostname)
Method Detail

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 AbstractTraceEvents 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 AbstractTraceEvents, ordered by AbstractTraceEvent.getOrderIndex().

Returns:
The event list.

Kieker 1.5

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