Search in sources :

Example 1 with AbstractTraceEvent

use of kieker.common.record.flow.trace.AbstractTraceEvent in project iobserve-analysis by research-iobserve.

the class TraceReconstructor method reconstructTrace.

private Long reconstructTrace(final IFlowRecord record) {
    Long traceId = null;
    if (record instanceof TraceMetadata) {
        traceId = ((TraceMetadata) record).getTraceId();
        final EventBasedTrace eventTrace = this.traceId2trace.getOrCreate(traceId);
        eventTrace.setTrace((TraceMetadata) record);
    } else if (record instanceof AbstractTraceEvent) {
        traceId = ((AbstractTraceEvent) record).getTraceId();
        final EventBasedTrace eventTrace = this.traceId2trace.getOrCreate(traceId);
        eventTrace.insertEvent((AbstractTraceEvent) record);
    }
    return traceId;
}
Also used : EventBasedTrace(org.iobserve.stages.data.trace.EventBasedTrace) TraceMetadata(kieker.common.record.flow.trace.TraceMetadata) AbstractTraceEvent(kieker.common.record.flow.trace.AbstractTraceEvent)

Aggregations

AbstractTraceEvent (kieker.common.record.flow.trace.AbstractTraceEvent)1 TraceMetadata (kieker.common.record.flow.trace.TraceMetadata)1 EventBasedTrace (org.iobserve.stages.data.trace.EventBasedTrace)1