Search in sources :

Example 6 with VersionedPort

use of org.apache.nifi.registry.flow.VersionedPort in project nifi by apache.

the class StandardProcessGroup method addOutputPort.

private Port addOutputPort(final ProcessGroup destination, final VersionedPort proposed, final String componentIdSeed) {
    final Port port = flowController.createLocalOutputPort(generateUuid(proposed.getIdentifier(), destination.getIdentifier(), componentIdSeed), proposed.getName());
    port.setVersionedComponentId(proposed.getIdentifier());
    destination.addOutputPort(port);
    updatePort(port, proposed);
    return port;
}
Also used : RootGroupPort(org.apache.nifi.remote.RootGroupPort) VersionedRemoteGroupPort(org.apache.nifi.registry.flow.VersionedRemoteGroupPort) Port(org.apache.nifi.connectable.Port) VersionedPort(org.apache.nifi.registry.flow.VersionedPort) LocalPort(org.apache.nifi.connectable.LocalPort) RemoteGroupPort(org.apache.nifi.remote.RemoteGroupPort)

Aggregations

VersionedPort (org.apache.nifi.registry.flow.VersionedPort)6 VersionedRemoteGroupPort (org.apache.nifi.registry.flow.VersionedRemoteGroupPort)5 LocalPort (org.apache.nifi.connectable.LocalPort)4 Port (org.apache.nifi.connectable.Port)4 RemoteGroupPort (org.apache.nifi.remote.RemoteGroupPort)4 RootGroupPort (org.apache.nifi.remote.RootGroupPort)4 ArrayList (java.util.ArrayList)3 HashMap (java.util.HashMap)3 List (java.util.List)3 Map (java.util.Map)3 Objects (java.util.Objects)3 Optional (java.util.Optional)3 Set (java.util.Set)3 Function (java.util.function.Function)3 Collectors (java.util.stream.Collectors)3 StringUtils (org.apache.commons.lang3.StringUtils)3 ConnectableComponent (org.apache.nifi.registry.flow.ConnectableComponent)3 VersionedComponent (org.apache.nifi.registry.flow.VersionedComponent)3 VersionedConnection (org.apache.nifi.registry.flow.VersionedConnection)3 VersionedProcessGroup (org.apache.nifi.registry.flow.VersionedProcessGroup)3