/** * 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; }
/** * {@inheritDoc} */ @Override public final String[] getAllInputPortNames() { final List<String> inputNames = new LinkedList<String>(); for (final Method method : this.getClass().getMethods()) { final InputPort inputPort = method.getAnnotation(InputPort.class); if ((inputPort != null) && (method.getParameterTypes().length == 1)) { inputNames.add(inputPort.name()); } } return inputNames.toArray(new String[inputNames.size()]); }
if ((ip != null) && (m.getParameterTypes().length == 1) && ip.name().equals(inputPortName)) { src.outputPorts.get(outputPortName).eventTypes(); java.security.AccessController.doPrivileged(new PrivilegedAction<Object>() { src.registeredMethods.get(outputPortName).add(new PluginInputPortReference(dst, inputPortName, m, dst.inputPorts.get(inputPortName).eventTypes())); src.outgoingPlugins.add(dst); dst.incomingPlugins.add(src);
if (inputPort.eventTypes().length != 0) { final Class<?>[] outEventTypes; if (outputPort.eventTypes().length == 0) { for (final Class<?> dstEventType : inputPort.eventTypes()) { if (dstEventType.isInterface() || srcEventType.isInterface() || dstEventType.isAssignableFrom(srcEventType) || srcEventType.isAssignableFrom(dstEventType)) { final String allowedInputTypes = Arrays.toString(inputPort.eventTypes()); LOG.warn("Output port '" + output + "' (" + allowedOutputTypes + ") is not compatible with input port '" + input + "' (" + allowedInputTypes + ").");
if ((ip != null) && (m.getParameterTypes().length == 1) && ip.name().equals(inputPortName)) { src.outputPorts.get(outputPortName).eventTypes(); java.security.AccessController.doPrivileged(new PrivilegedAction<Object>() { src.registeredMethods.get(outputPortName).add(new PluginInputPortReference(dst, inputPortName, m, dst.inputPorts.get(inputPortName).eventTypes())); src.outgoingPlugins.add(dst); dst.incomingPlugins.add(src);
/** * 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); }
/** * {@inheritDoc} */ @Override public final String[] getAllInputPortNames() { final List<String> inputNames = new LinkedList<>(); for (final Method method : this.getClass().getMethods()) { final InputPort inputPort = method.getAnnotation(InputPort.class); if ((inputPort != null) && (method.getParameterTypes().length == 1)) { inputNames.add(inputPort.name()); } } return inputNames.toArray(new String[inputNames.size()]); }
/** * 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); }
@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 = CPUUtilizationDisplayFilter.INPUT_PORT_NAME_EVENTS, eventTypes = { CPUUtilizationRecord.class }) public void input(final CPUUtilizationRecord 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); }
@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); }