use of kieker.common.record.flow.trace.operation.CallOperationEvent in project iobserve-analysis by research-iobserve.
the class TranslateCallOperationEventsStage method execute.
@Override
protected void execute(final IFlowRecord event) throws Exception {
if (event instanceof CallOperationEvent) {
final CallOperationEvent call = (CallOperationEvent) event;
this.outputPort.send(new BeforeOperationEvent(call.getTimestamp(), call.getTraceId(), call.getOrderIndex(), call.getCalleeOperationSignature(), call.getCalleeClassSignature()));
this.waitingList.add(new AfterOperationEvent(call.getTimestamp() + 1000 * 1000, call.getTraceId(), call.getOrderIndex(), call.getCalleeOperationSignature(), call.getCalleeClassSignature()));
this.sendWaiting(call.getTimestamp());
} else if (event instanceof IEventRecord) {
this.sendWaiting(((IEventRecord) event).getTimestamp());
this.outputPort.send(event);
} else {
this.outputPort.send(event);
}
}
Aggregations