@OutputPort(name = AnalysisThroughputFilter.OUTPUT_PORT_NAME_RELAYED_OBJECTS, eventTypes = { Object.class }, description = "Provides each incoming object"), @OutputPort(name = AnalysisThroughputFilter.OUTPUT_PORT_NAME_THROUGHPUT, eventTypes = { Long.class }, description = "Provides throughput since last timer event object") })
if (this.outputPorts.put(outputPort.name(), outputPort) != null) { this.logger.error("Two OutputPorts use the same name: {}", outputPort.name()); Class<?>[] outTypes = outputPort.eventTypes(); if (outTypes.length == 0) { outTypes = new Class<?>[] { Object.class }; this.logger.warn("Invalid port for visualization filter detected. Port is ignored: {}", outputPort.name()); this.registeredMethods.put(outputPort.name(), new ArrayList<PluginInputPortReference>(1));
/** * {@inheritDoc} */ @Override public final String[] getAllOutputPortNames() { final List<String> outputNames = new LinkedList<String>(); final Plugin annotation = this.getClass().getAnnotation(Plugin.class); for (final OutputPort outputPort : annotation.outputPorts()) { outputNames.add(outputPort.name()); } return outputNames.toArray(new String[outputNames.size()]); }
if (outputPort.eventTypes().length == 0) { outEventTypes = new Class<?>[] { Object.class }; } else { outEventTypes = outputPort.eventTypes(); final String allowedOutputTypes = Arrays.toString(outputPort.eventTypes()); final String allowedInputTypes = Arrays.toString(inputPort.eventTypes()); LOGGER.warn("Output port '{}' ({}) is not compatible with input port '{}' ({}).", output, allowedOutputTypes, input, allowedInputTypes);
/** * {@inheritDoc} */ @Override public final String[] getAllOutputPortNames() { final List<String> outputNames = new LinkedList<>(); final Plugin annotation = this.getClass().getAnnotation(Plugin.class); for (final OutputPort outputPort : annotation.outputPorts()) { outputNames.add(outputPort.name()); } return outputNames.toArray(new String[outputNames.size()]); }
if (outputPort.eventTypes().length == 0) { outEventTypes = new Class<?>[] { Object.class }; } else { outEventTypes = outputPort.eventTypes(); final String allowedOutputTypes = Arrays.toString(outputPort.eventTypes()); final String allowedInputTypes = Arrays.toString(inputPort.eventTypes()); LOG.warn("Output port '" + output + "' (" + allowedOutputTypes + ") is not compatible with input port '" + input + "' (" + allowedInputTypes
@OutputPort(name = AnalysisThroughputFilter.OUTPUT_PORT_NAME_RELAYED_OBJECTS, eventTypes = { Object.class }, description = "Provides each incoming object"), @OutputPort(name = AnalysisThroughputFilter.OUTPUT_PORT_NAME_THROUGHPUT, eventTypes = { Long.class }, description = "Provides throughput since last timer event object") })
if (this.outputPorts.put(outputPort.name(), outputPort) != null) { this.log.error("Two OutputPorts use the same name: " + outputPort.name()); Class<?>[] outTypes = outputPort.eventTypes(); if (outTypes.length == 0) { outTypes = new Class<?>[] { Object.class }; this.log.warn("Invalid port for visualization filter detected. Port is ignored: " + outputPort.name()); this.registeredMethods.put(outputPort.name(), new ArrayList<PluginInputPortReference>(1));
} else { this.logger.warn("Caught exception when sending data from {}: OutputPort {} to {}'s InputPort {}", this.getClass().getName(), outputPort.name(), pluginInputPortReference.getPlugin().getClass().getName(), pluginInputPortReference.getInputPortMethod().getName(), cause);
final InputPort ip = m.getAnnotation(InputPort.class); if ((ip != null) && (m.getParameterTypes().length == 1) && ip.name().equals(inputPortName)) { src.outputPorts.get(outputPortName).eventTypes(); java.security.AccessController.doPrivileged(new PrivilegedAction<Object>() { @Override
description = "A filter counting the elements flowing through this filter", outputPorts = { @OutputPort(name = CountingFilter.OUTPUT_PORT_NAME_RELAYED_EVENTS, eventTypes = { Object.class }, description = "Provides each incoming object"), @OutputPort(name = CountingFilter.OUTPUT_PORT_NAME_COUNT, eventTypes = { Long.class }, description = "Provides the current object count") }) public final class CountingFilter extends AbstractFilterPlugin {
this.log.warn("Caught exception when sending data from " + this.getClass().getName() + ": OutputPort " + outputPort.name() + " to " + pluginInputPortReference.getPlugin().getClass().getName() + "'s InputPort "
final InputPort ip = m.getAnnotation(InputPort.class); if ((ip != null) && (m.getParameterTypes().length == 1) && ip.name().equals(inputPortName)) { src.outputPorts.get(outputPortName).eventTypes(); java.security.AccessController.doPrivileged(new PrivilegedAction<Object>() { @Override
description = "A filter counting the elements flowing through this filter", outputPorts = { @OutputPort(name = CountingFilter.OUTPUT_PORT_NAME_RELAYED_EVENTS, eventTypes = { Object.class }, description = "Provides each incoming object"), @OutputPort(name = CountingFilter.OUTPUT_PORT_NAME_COUNT, eventTypes = { Long.class }, description = "Provides the current object count") }) public final class CountingFilter extends AbstractFilterPlugin {
@OutputPort(eventTypes = { StorableDetectionResult.class }, name = AnomalyDetectionFilter.OUTPUT_PORT_ANOMALY_SCORE_IF_ANOMALY), @OutputPort(eventTypes = { StorableDetectionResult.class }, name = AnomalyDetectionFilter.OUTPUT_PORT_ANOMALY_SCORE_ELSE), @OutputPort(eventTypes = { ExtendedStorableDetectionResult.class }, name = AnomalyDetectionFilter.OUTPUT_PORT_ALL) }, configuration = { @Property(name = AnomalyDetectionFilter.CONFIG_PROPERTY_NAME_THRESHOLD, defaultValue = "0.5", updateable = true) }) public class AnomalyDetectionFilter extends AbstractUpdateableFilterPlugin {
@OutputPort(eventTypes = { StorableDetectionResult.class }, name = AnomalyDetectionFilter.OUTPUT_PORT_ANOMALY_SCORE_IF_ANOMALY), @OutputPort(eventTypes = { StorableDetectionResult.class }, name = AnomalyDetectionFilter.OUTPUT_PORT_ANOMALY_SCORE_ELSE), @OutputPort(eventTypes = { ExtendedStorableDetectionResult.class }, name = AnomalyDetectionFilter.OUTPUT_PORT_ALL) }, configuration = { @Property(name = AnomalyDetectionFilter.CONFIG_PROPERTY_NAME_THRESHOLD, defaultValue = "0.5", updateable = true) }) public class AnomalyDetectionFilter extends AbstractUpdateableFilterPlugin {
outputPorts = { @OutputPort(eventTypes = { StorableDetectionResult.class }, name = AnomalyScoreCalculationFilter.OUTPUT_PORT_ANOMALY_SCORE) }) public class AnomalyScoreCalculationFilter extends AbstractFilterPlugin {
outputPorts = { @OutputPort(eventTypes = { StorableDetectionResult.class }, name = AnomalyScoreCalculationFilter.OUTPUT_PORT_ANOMALY_SCORE) }) public class AnomalyScoreCalculationFilter extends AbstractFilterPlugin {
outputPorts = @OutputPort(name = RecordConverter.OUTPUT_PORT_NAME_NDR, eventTypes = { NamedDoubleRecord.class })) public class RecordConverter extends AbstractFilterPlugin {
outputPorts = @OutputPort(name = RecordConverter.OUTPUT_PORT_NAME_NDR, eventTypes = { NamedDoubleRecord.class })) public class RecordConverter extends AbstractFilterPlugin {