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;
}
Aggregations