/** * This method represents the input port receiving trace events to be selected by a specific timestamp selector (based on tin and tout). * * @param execution * The new incoming execution object. */ @InputPort(name = INPUT_PORT_NAME_EXECUTION, description = "Receives trace events to be selected by a specific timestamp selector (based on tin and tout)", eventTypes = { OperationExecutionRecord.class }) public final void inputOperationExecutionRecord(final OperationExecutionRecord execution) { if (this.inRange(execution.getTin()) && this.inRange(execution.getTout())) { super.deliver(OUTPUT_PORT_NAME_WITHIN_PERIOD, execution); } else { super.deliver(OUTPUT_PORT_NAME_OUTSIDE_PERIOD, execution); } } }
/** * This method represents the input port receiving trace events to be selected * by a specific timestamp selector (based on tin and tout). * * @param execution * The new incoming execution object. */ @InputPort(name = INPUT_PORT_NAME_EXECUTION, description = "Receives trace events to be selected by a specific timestamp selector (based on tin and tout)", eventTypes = { OperationExecutionRecord.class }) public final void inputOperationExecutionRecord(final OperationExecutionRecord execution) { if (this.inRange(execution.getTin()) && this.inRange(execution.getTout())) { super.deliver(OUTPUT_PORT_NAME_WITHIN_PERIOD, execution); } else { super.deliver(OUTPUT_PORT_NAME_OUTSIDE_PERIOD, execution); } } }
@InputPort(name = INPUT_PORT_NAME_ANY_RECORD, description = "Receives records to be selected by their logging timestamps", eventTypes = { IMonitoringRecord.class }) public final void inputIMonitoringRecord(final IMonitoringRecord record) { if (this.inRange(record.getLoggingTimestamp())) { super.deliver(OUTPUT_PORT_NAME_WITHIN_PERIOD, record); } else { super.deliver(OUTPUT_PORT_NAME_OUTSIDE_PERIOD, record); } }
@InputPort(name = INPUT_PORT_NAME_ANY_RECORD, description = "Receives records to be selected by their logging timestamps", eventTypes = { IMonitoringRecord.class }) public final void inputIMonitoringRecord(final IMonitoringRecord record) { if (this.inRange(record.getLoggingTimestamp())) { super.deliver(OUTPUT_PORT_NAME_WITHIN_PERIOD, record); } else { super.deliver(OUTPUT_PORT_NAME_OUTSIDE_PERIOD, record); } }
/** * This method represents the input port receiving trace events to be selected by a specific timestamp selector. * * @param record * The new incoming record. */ @InputPort(name = INPUT_PORT_NAME_FLOW, description = "Receives trace events to be selected by a specific timestamp selector", eventTypes = { IEventRecord.class, TraceMetadata.class }) public final void inputTraceEvent(final IFlowRecord record) { final long timestamp; if (record instanceof TraceMetadata) { timestamp = ((TraceMetadata) record).getLoggingTimestamp(); } else if (record instanceof IEventRecord) { timestamp = ((IEventRecord) record).getTimestamp(); } else { // should not happen given the accepted type return; } if (this.inRange(timestamp)) { super.deliver(OUTPUT_PORT_NAME_WITHIN_PERIOD, record); } else { super.deliver(OUTPUT_PORT_NAME_OUTSIDE_PERIOD, record); } }
/** * This method represents the input port receiving trace events to be selected * by a specific timestamp selector. * * @param record * The new incoming record. */ @InputPort(name = INPUT_PORT_NAME_FLOW, description = "Receives trace events to be selected by a specific timestamp selector", eventTypes = { IEventRecord.class, TraceMetadata.class }) public final void inputTraceEvent(final IFlowRecord record) { final long timestamp; if (record instanceof TraceMetadata) { timestamp = ((TraceMetadata) record).getLoggingTimestamp(); } else if (record instanceof IEventRecord) { timestamp = ((IEventRecord) record).getTimestamp(); } else { // should not happen given the accepted type return; } if (this.inRange(timestamp)) { super.deliver(OUTPUT_PORT_NAME_WITHIN_PERIOD, record); } else { super.deliver(OUTPUT_PORT_NAME_OUTSIDE_PERIOD, record); } }