/** * This method represents an input port for operation execution records. * * @param record * The next record. */ @InputPort(name = INPUT_PORT_NAME_EXECUTION, description = "Receives execution events to be selected by trace ID", eventTypes = { OperationExecutionRecord.class }) public void inputOperationExecutionRecord(final OperationExecutionRecord record) { if (this.acceptId(record.getTraceId())) { super.deliver(OUTPUT_PORT_NAME_MATCH, record); } else { super.deliver(OUTPUT_PORT_NAME_MISMATCH, record); } } }
/** * This method represents an input port for operation execution records. * * @param record * The next record. */ @InputPort(name = INPUT_PORT_NAME_EXECUTION, description = "Receives execution events to be selected by trace ID", eventTypes = { OperationExecutionRecord.class }) public void inputOperationExecutionRecord(final OperationExecutionRecord record) { if (this.acceptId(record.getTraceId())) { super.deliver(OUTPUT_PORT_NAME_MATCH, record); } else { super.deliver(OUTPUT_PORT_NAME_MISMATCH, record); } } }
/** * This method represents an input port for flow records. * * @param record * The next record. */ @InputPort(name = INPUT_PORT_NAME_FLOW, description = "Receives trace events to be selected by trace ID", eventTypes = { ITraceRecord.class, TraceMetadata.class }) public void inputTraceEvent(final IFlowRecord record) { final long traceId; if (record instanceof TraceMetadata) { traceId = ((TraceMetadata) record).getTraceId(); } else if (record instanceof AbstractTraceEvent) { traceId = ((ITraceRecord) record).getTraceId(); } else { // should not happen given the accepted type return; } if (this.acceptId(traceId)) { super.deliver(OUTPUT_PORT_NAME_MATCH, record); } else { super.deliver(OUTPUT_PORT_NAME_MISMATCH, record); } }
/** * This method represents an input port for flow records. * * @param record * The next record. */ @InputPort(name = INPUT_PORT_NAME_FLOW, description = "Receives trace events to be selected by trace ID", eventTypes = { ITraceRecord.class, TraceMetadata.class }) public void inputTraceEvent(final IFlowRecord record) { final long traceId; if (record instanceof TraceMetadata) { traceId = ((TraceMetadata) record).getTraceId(); } else if (record instanceof AbstractTraceEvent) { traceId = ((ITraceRecord) record).getTraceId(); } else { // should not happen given the accepted type return; } if (this.acceptId(traceId)) { super.deliver(OUTPUT_PORT_NAME_MATCH, record); } else { super.deliver(OUTPUT_PORT_NAME_MISMATCH, record); } }