/** * This method represents the input port for the incoming objects. * * @param event * The new incoming object. */ @InputPort(name = INPUT_PORT_NAME_EVENTS, eventTypes = { Object.class }) public final void inputEvents(final Object event) { this.currentObject = event; }
/** * This is the (abstract) input port for the incoming message traces. * * @param mt * The incoming message trace. */ @InputPort(name = INPUT_PORT_NAME_MESSAGE_TRACES, description = "Receives the message traces to be processed", eventTypes = { MessageTrace.class }) public abstract void inputMessageTraces(final MessageTrace mt); }
/** * This method represents the input port receiving the incoming events. * * @param record * The record to display and relay. */ @InputPort(name = ThreadsStatusDisplayFilter.INPUT_PORT_NAME_EVENTS, eventTypes = { ThreadsStatusRecord.class }) public void input(final ThreadsStatusRecord record) { this.updateDisplays(record); }
/** * This method is the input port for the timeout. * * @param timestamp * The timestamp */ @InputPort(name = INPUT_PORT_NAME_TIME_EVENT, description = "Time signal for timeouts", eventTypes = { Long.class }) public void newEvent(final Long timestamp) { synchronized (this) { this.processTimeoutQueue(timestamp); } }
/** * This method represents the input port receiving the incoming events. * * @param record * The record to display and relay. */ @InputPort(name = MemSwapUtilizationDisplayFilter.INPUT_PORT_NAME_EVENTS, eventTypes = { MemSwapUsageRecord.class }) public void input(final MemSwapUsageRecord record) { this.updateDisplays(record); }
@InputPort(name = INPUT_PORT_NAME_OBJECTS, eventTypes = { Object.class }, description = "Receives incoming objects to calculate the throughput") public final void inputObjects(final Object object) { this.counter.incrementAndGet(); super.deliver(OUTPUT_PORT_NAME_RELAYED_OBJECTS, object); }
/** * This method represents the input port receiving the incoming events. * * @param record * The record to display and relay. */ @InputPort(name = MemSwapUtilizationDisplayFilter.INPUT_PORT_NAME_EVENTS, eventTypes = { MemSwapUsageRecord.class }) public void input(final MemSwapUsageRecord record) { this.updateDisplays(record); }
/** * This method represents the input port receiving the incoming events. * * @param record * The record to display and relay. */ @InputPort(name = GCDisplayFilter.INPUT_PORT_NAME_EVENTS, eventTypes = { GCRecord.class }) public void input(final GCRecord record) { this.updateDisplays(record); }
@InputPort(name = AnomalyScoreVisualizationFilter.INPUT_PORT_NAME_EVENTS, eventTypes = { StorableDetectionResult.class }) public void inputNormal(final StorableDetectionResult record) { this.updateDisplays(record); }
@InputPort(name = INPUT_PORT_NAME_TIME, eventTypes = { Long.class }, description = "Receives timestamps to calculate the throughput") public final void inputTime(final Long timestamp) { final long count = this.counter.getAndSet(0); final long duration = timestamp - this.lastTimestamp; final StringBuilder sb = new StringBuilder(256); sb.append(count).append(" objects within ").append(duration).append(' '). append(super.recordsTimeUnitFromProjectContext.toString()); this.plainTextDisplayObject.setText(sb.toString()); super.deliver(OUTPUT_PORT_NAME_THROUGHPUT, count); this.lastTimestamp = timestamp; }
/** * This method represents the input port. The new records are send to the monitoring controller before they are delivered via the output port. * * @param record * The next record. */ @InputPort(name = INPUT_PORT_NAME_RECORD, description = "Receives records to be passed to the controller", eventTypes = { IMonitoringRecord.class }) public final void inputIMonitoringRecord(final IMonitoringRecord record) { this.monitoringController.newMonitoringRecord(record); super.deliver(OUTPUT_PORT_NAME_RELAYED_EVENTS, record); }
/** * This method represents the input port for new records. * * @param record * The next record. */ @InputPort(name = INPUT_PORT_NAME_NEW_RECORD, eventTypes = { IMonitoringRecord.class }, description = "Receives a new record and extracts the logging timestamp as a time event") public void inputRecord(final IMonitoringRecord record) { this.inputTimestamp(record.getLoggingTimestamp()); }
/** * This method represents the input port of this filter. * * @param et * The next execution trace. */ @InputPort(name = INPUT_PORT_NAME_EXECUTION_TRACES, description = "Receives the execution traces to be written", eventTypes = { ExecutionTrace.class }) public void newExecutionTrace(final ExecutionTrace et) { ExecutionTraceWriterFilter.this.ps.println(et.toString()); ExecutionTraceWriterFilter.this.reportSuccess(et.getTraceId()); }
/** * {@inheritDoc} */ @Override @InputPort( name = AbstractMessageTraceProcessingFilter.INPUT_PORT_NAME_MESSAGE_TRACES, description = "Receives message traces to be processed", eventTypes = { MessageTrace.class }) public void inputMessageTraces(final MessageTrace mt) { MessageTraceWriterFilter.this.ps.println(mt.toString()); MessageTraceWriterFilter.this.reportSuccess(mt.getTraceId()); } }
@SuppressWarnings("unused") // invoked via reflection @InputPort(name = INPUT_PORT_NAME) public final void inputEvent(final Object event) { super.deliver(OUTPUT_PORT_NAME, event); } }
/** * This method represents the input port for the valid traces. * * @param validTrace * The next trace. */ @InputPort(name = INPUT_PORT_NAME_VALID, eventTypes = { TraceEventRecords.class }, description = "Receives valid event record traces") public void inputValidTrace(final TraceEventRecords validTrace) { super.reportSuccess(validTrace.getTraceMetadata().getTraceId()); }
@InputPort(name = INPUT_PORT_NAME_VALUE, eventTypes = { NamedDoubleRecord.class }) public void inputExecutionRecord(final NamedDoubleRecord record) { final long timestampMillis = this.timeunit.convert(record.getTimestamp(), super.recordsTimeUnitFromProjectContext); final NamedDoubleTimeSeriesPoint tspoint = new NamedDoubleTimeSeriesPoint(timestampMillis, record.getResponseTime(), record.getApplicationName()); super.deliver(OUTPUT_PORT_NAME_VALUE, tspoint); }
/** * This method represents the input port of this filter. * * @param et * The next execution trace. */ @InputPort(name = INPUT_PORT_NAME_INVALID_EXECUTION_TRACES, description = "Receives the invalid execution traces to be written", eventTypes = { InvalidExecutionTrace.class }) public void newInvalidExecutionTrace(final InvalidExecutionTrace et) { InvalidExecutionTraceWriterFilter.this.ps.println(et.getInvalidExecutionTraceArtifacts().toString()); InvalidExecutionTraceWriterFilter.this.reportSuccess(et.getInvalidExecutionTraceArtifacts().getTraceId()); }
@InputPort(eventTypes = { StorableDetectionResult.class }, name = AnomalyDetectionFilter.INPUT_PORT_ANOMALY_SCORE) public void inputForecastAndMeasurement( final StorableDetectionResult anomalyScore) { if (anomalyScore.getScore() >= this.threshold.get()) { super.deliver(OUTPUT_PORT_ANOMALY_SCORE_IF_ANOMALY, anomalyScore); } else { super.deliver(OUTPUT_PORT_ANOMALY_SCORE_ELSE, anomalyScore); } final ExtendedStorableDetectionResult extAnomalyScore = new ExtendedStorableDetectionResult(anomalyScore.getApplicationName(), anomalyScore.getValue(), anomalyScore.getTimestamp(), anomalyScore.getForecast(), anomalyScore.getScore(), this.threshold.get().doubleValue()); super.deliver(OUTPUT_PORT_ALL, extAnomalyScore); }
@InputPort(eventTypes = { StorableDetectionResult.class }, name = AnomalyDetectionFilter.INPUT_PORT_ANOMALY_SCORE) public void inputForecastAndMeasurement( final StorableDetectionResult anomalyScore) { if (anomalyScore.getScore() >= this.threshold.get()) { super.deliver(OUTPUT_PORT_ANOMALY_SCORE_IF_ANOMALY, anomalyScore); } else { super.deliver(OUTPUT_PORT_ANOMALY_SCORE_ELSE, anomalyScore); } final ExtendedStorableDetectionResult extAnomalyScore = new ExtendedStorableDetectionResult(anomalyScore.getApplicationName(), anomalyScore.getValue(), anomalyScore.getTimestamp(), anomalyScore.getForecast(), anomalyScore.getScore(), this.threshold.get().doubleValue()); super.deliver(OUTPUT_PORT_ALL, extAnomalyScore); }