/** * {@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()]); }
/** * {@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 (this.outputPorts.put(outputPort.name(), outputPort) != null) { this.logger.error("Two OutputPorts use the same name: {}", outputPort.name()); this.logger.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);
this.log.warn("Caught exception when sending data from " + this.getClass().getName() + ": OutputPort " + outputPort.name() + " to " + pluginInputPortReference.getPlugin().getClass().getName() + "'s InputPort "
if (this.outputPorts.put(outputPort.name(), outputPort) != null) { this.log.error("Two OutputPorts use the same name: " + outputPort.name()); this.log.warn("Invalid port for visualization filter detected. Port is ignored: " + outputPort.name()); this.registeredMethods.put(outputPort.name(), new ArrayList<PluginInputPortReference>(1));