/** * 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 base for a filter processing execution traces. * * @author Andre van Hoorn * * @since 1.1 */ @Plugin(repositoryPorts = @RepositoryPort(name = AbstractTraceAnalysisFilter.REPOSITORY_PORT_NAME_SYSTEM_MODEL, repositoryType = SystemModelRepository.class)) public abstract class AbstractExecutionTraceProcessingFilter extends AbstractTraceProcessingFilter { /** * Creates a new instance of this class using the given parameters. * * @param configuration * The configuration for this component. * @param projectContext * The project context for this component. */ public AbstractExecutionTraceProcessingFilter(final Configuration configuration, final IProjectContext projectContext) { super(configuration, projectContext); } }
private Property[] getExpectedProperties(final Class<?> clazz) { final Plugin pluginAnnotation = clazz.getAnnotation(Plugin.class); if (pluginAnnotation != null) { return pluginAnnotation.configuration(); } else { return new Property[0]; } }
/** * 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 is the abstract base for a filter processing execution traces. * * @author Andre van Hoorn * * @since 1.1 */ @Plugin(repositoryPorts = @RepositoryPort(name = AbstractTraceAnalysisFilter.REPOSITORY_PORT_NAME_SYSTEM_MODEL, repositoryType = SystemModelRepository.class)) public abstract class AbstractExecutionTraceProcessingFilter extends AbstractTraceProcessingFilter { /** * Creates a new instance of this class using the given parameters. * * @param configuration * The configuration for this component. * @param projectContext * The project context for this component. */ public AbstractExecutionTraceProcessingFilter(final Configuration configuration, final IProjectContext projectContext) { super(configuration, projectContext); } }
/** * 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 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 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); }
/** * 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); }
/** * 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 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); }
/** * This method represents the input ports for the execution objects. * * @param data * The next execution. */ @InputPort(name = ExecutionSinkClass.INPUT_PORT_NAME, eventTypes = { Execution.class }) public void doJob(final Object data) { this.lst.add((Execution) data); }
@SuppressWarnings("unused") // invoked via reflection @InputPort(name = INPUT_PORT_NAME) public final void inputEvent(final Object event) { super.deliver(OUTPUT_PORT_NAME, event); } }
@InputPort(name = INPUT_PORT_NAME_COMBINED, description = "Receives records to be selected by timestamps, based on type-specific selectors", eventTypes = { IMonitoringRecord.class }) public void inputCombined(final IMonitoringRecord record) { if (record instanceof OperationExecutionRecord) { this.inputOperationExecutionRecord((OperationExecutionRecord) record); } else if (record instanceof IEventRecord) { this.inputTraceEvent((IEventRecord) record); } else { this.inputIMonitoringRecord(record); } }
/** * This method represents the input port of this method, receiving the new objects. * * @param event * The next event. */ @InputPort(name = INPUT_PORT_NAME, eventTypes = { Object.class }) public final void inputEvent(final Object event) { super.deliver(OUTPUT_PORT_NAME, event); }
@InputPort(name = INPUT_PORT_NAME_COMBINED, description = "Receives records to be selected by timestamps, based on type-specific selectors", eventTypes = { IMonitoringRecord.class }) public void inputCombined(final IMonitoringRecord record) { if (record instanceof OperationExecutionRecord) { this.inputOperationExecutionRecord((OperationExecutionRecord) record); } else if (record instanceof IEventRecord) { this.inputTraceEvent((IEventRecord) record); } else { this.inputIMonitoringRecord(record); } }