Java Code Examples for org.apache.nifi.web.api.dto.FlowSnippetDTO#getRemoteProcessGroups()
The following examples show how to use
org.apache.nifi.web.api.dto.FlowSnippetDTO#getRemoteProcessGroups() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TemplateUtils.java From localization_nifi with Apache License 2.0 | 5 votes |
private static void scrubSnippet(final FlowSnippetDTO snippet) { // ensure that contents have been specified if (snippet != null) { // go through each processor if specified if (snippet.getProcessors() != null) { scrubProcessors(snippet.getProcessors()); } // go through each connection if specified if (snippet.getConnections() != null) { scrubConnections(snippet.getConnections()); } // go through each remote process group if specified if (snippet.getRemoteProcessGroups() != null) { scrubRemoteProcessGroups(snippet.getRemoteProcessGroups()); } // go through each process group if specified if (snippet.getProcessGroups() != null) { scrubProcessGroups(snippet.getProcessGroups()); } // go through each controller service if specified if (snippet.getControllerServices() != null) { scrubControllerServices(snippet.getControllerServices()); } } }
Example 2
Source File: SnippetUtils.java From localization_nifi with Apache License 2.0 | 5 votes |
/** * Gets all components, but not connections, that are part of the specified template. * * @param contents snippet * @return component dtos */ private static Collection<ComponentDTO> getComponents(FlowSnippetDTO contents) { final Collection<ComponentDTO> components = new HashSet<>(); // add all components if (contents.getInputPorts() != null) { components.addAll(contents.getInputPorts()); } if (contents.getLabels() != null) { components.addAll(contents.getLabels()); } if (contents.getOutputPorts() != null) { components.addAll(contents.getOutputPorts()); } if (contents.getProcessGroups() != null) { components.addAll(contents.getProcessGroups()); } if (contents.getProcessors() != null) { components.addAll(contents.getProcessors()); } if (contents.getFunnels() != null) { components.addAll(contents.getFunnels()); } if (contents.getRemoteProcessGroups() != null) { components.addAll(contents.getRemoteProcessGroups()); } return components; }
Example 3
Source File: TemplateUtils.java From nifi with Apache License 2.0 | 5 votes |
private static void scrubSnippet(final FlowSnippetDTO snippet) { // ensure that contents have been specified if (snippet != null) { // go through each processor if specified if (snippet.getProcessors() != null) { scrubProcessors(snippet.getProcessors()); } // go through each connection if specified if (snippet.getConnections() != null) { scrubConnections(snippet.getConnections()); } // go through each remote process group if specified if (snippet.getRemoteProcessGroups() != null) { scrubRemoteProcessGroups(snippet.getRemoteProcessGroups()); } // go through each process group if specified if (snippet.getProcessGroups() != null) { scrubProcessGroups(snippet.getProcessGroups()); } // go through each controller service if specified if (snippet.getControllerServices() != null) { scrubControllerServices(snippet.getControllerServices()); } } }
Example 4
Source File: SnippetUtils.java From nifi with Apache License 2.0 | 5 votes |
/** * Gets all components, but not connections, that are part of the specified template. * * @param contents snippet * @return component dtos */ private static Collection<ComponentDTO> getComponents(FlowSnippetDTO contents) { final Collection<ComponentDTO> components = new HashSet<>(); // add all components if (contents.getInputPorts() != null) { components.addAll(contents.getInputPorts()); } if (contents.getLabels() != null) { components.addAll(contents.getLabels()); } if (contents.getOutputPorts() != null) { components.addAll(contents.getOutputPorts()); } if (contents.getProcessGroups() != null) { components.addAll(contents.getProcessGroups()); } if (contents.getProcessors() != null) { components.addAll(contents.getProcessors()); } if (contents.getFunnels() != null) { components.addAll(contents.getFunnels()); } if (contents.getRemoteProcessGroups() != null) { components.addAll(contents.getRemoteProcessGroups()); } return components; }