Class NiFiRegistryFlowMapper
java.lang.Object
org.apache.nifi.registry.flow.mapping.NiFiRegistryFlowMapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate final ExtensionManagerprivate final FlowMappingOptionsprivate final ParameterValueMapper -
Constructor Summary
ConstructorsConstructorDescriptionNiFiRegistryFlowMapper(ExtensionManager extensionManager) NiFiRegistryFlowMapper(ExtensionManager extensionManager, FlowMappingOptions flowMappingOptions) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanapplyVersionControlInformation(ProcessGroup processGroup, org.apache.nifi.flow.VersionedProcessGroup versionedGroup, FlowManager flowManager, boolean mapDescendantVersionedFlows) private voidconfigureParameterProvider(ParameterContext parameterContext, org.apache.nifi.flow.VersionedParameterContext versionedParameterContext) private org.apache.nifi.flow.ParameterProviderReferencecreateParameterProviderReference(ParameterContext parameterContext) private org.apache.nifi.flow.VersionedAssetcreateVersionedAsset(Asset asset) protected Stringstatic StringgenerateVersionedComponentId(String componentId) Generate a versioned component identifier based on the given component identifier.getGroupId(String groupId) private StringgetIdOrThrow(String componentId, Supplier<E> exceptionSupplier) private booleanisMappable(PropertyDescriptor propertyDescriptor, PropertyConfiguration propertyConfiguration) private org.apache.nifi.flow.BatchSizemapBatchSettings(RemoteGroupPort remotePort) private org.apache.nifi.flow.BundlemapBundle(BundleCoordinate coordinate) org.apache.nifi.flow.ConnectableComponentmapConnectable(Connectable connectable) org.apache.nifi.flow.VersionedConnectionmapConnection(Connection connection) org.apache.nifi.flow.VersionedControllerServicemapControllerService(ControllerServiceNode controllerService, ControllerServiceProvider serviceProvider, Set<String> includedGroupIds, Map<String, org.apache.nifi.flow.ExternalControllerServiceReference> externalControllerServiceReferences) private List<org.apache.nifi.flow.ControllerServiceAPI> org.apache.nifi.flow.VersionedFlowAnalysisRulemapFlowAnalysisRule(FlowAnalysisRuleNode flowAnalysisRuleNode, ControllerServiceProvider serviceProvider) org.apache.nifi.flow.VersionedFlowRegistryClientmapFlowRegistryClient(FlowRegistryClientNode clientNode, ControllerServiceProvider serviceProvider) org.apache.nifi.flow.VersionedFunnelmapGroup(ProcessGroup group, ControllerServiceProvider serviceProvider, BiFunction<ProcessGroup, org.apache.nifi.flow.VersionedProcessGroup, Boolean> applyVersionControlInfo) mapGroup(ProcessGroup group, ControllerServiceProvider serviceProvider, BiFunction<ProcessGroup, org.apache.nifi.flow.VersionedProcessGroup, Boolean> applyVersionControlInfo, boolean topLevel, Set<String> includedGroupIds, Map<String, org.apache.nifi.flow.ExternalControllerServiceReference> externalControllerServiceReferences) org.apache.nifi.flow.VersionedLabelmapNonVersionedProcessGroup(ProcessGroup group, ControllerServiceProvider serviceProvider) Map the given process group to a versioned process group without any use of an actual flow registry even if the group is currently versioned in a registry.private org.apache.nifi.flow.VersionedParametermapParameter(Parameter parameter) private org.apache.nifi.flow.VersionedParametermapParameter(ParameterContext parameterContext, ParameterDescriptor parameterDescriptor, Parameter parameter) private org.apache.nifi.flow.VersionedParametermapParameter(Parameter parameter, String value) org.apache.nifi.flow.VersionedParameterContextmapParameterContext(ParameterContext parameterContext) private voidmapParameterContext(ParameterContext parameterContext, Map<String, org.apache.nifi.flow.VersionedParameterContext> parameterContexts, Map<String, org.apache.nifi.flow.ParameterProviderReference> parameterProviderReferences) mapParameterContexts(ProcessGroup processGroup, boolean mapDescendantVersionedFlows, Map<String, org.apache.nifi.flow.ParameterProviderReference> parameterProviderReferences) private voidmapParameterContexts(ProcessGroup processGroup, boolean mapDescendantVersionedFlows, Map<String, org.apache.nifi.flow.VersionedParameterContext> parameterContexts, Map<String, org.apache.nifi.flow.ParameterProviderReference> parameterProviderReferences) org.apache.nifi.flow.VersionedParameterProvidermapParameterProvider(ParameterProviderNode parameterProviderNode, ControllerServiceProvider serviceProvider) private Set<org.apache.nifi.flow.VersionedParameter> mapParameters(ParameterContext parameterContext) org.apache.nifi.flow.VersionedPortorg.apache.nifi.flow.PositionmapPosition(Position pos) mapProcessGroup(ProcessGroup group, ControllerServiceProvider serviceProvider, FlowManager flowManager, boolean mapDescendantVersionedFlows) Map the given process group to a versioned process group using the provided registry client.org.apache.nifi.flow.VersionedProcessormapProcessor(ProcessorNode procNode, ControllerServiceProvider serviceProvider, Set<String> includedGroupIds, Map<String, org.apache.nifi.flow.ExternalControllerServiceReference> externalControllerServiceReferences) mapProperties(ComponentNode component, ControllerServiceProvider serviceProvider) mapPropertyDescriptors(ComponentNode component, ControllerServiceProvider serviceProvider, Set<String> includedGroupIds, Map<String, org.apache.nifi.flow.ExternalControllerServiceReference> externalControllerServiceReferences) org.apache.nifi.flow.VersionedRemoteGroupPortmapRemotePort(RemoteGroupPort remotePort, org.apache.nifi.flow.ComponentType componentType) org.apache.nifi.flow.VersionedRemoteProcessGroupmapRemoteProcessGroup(RemoteProcessGroup remoteGroup) org.apache.nifi.flow.VersionedReportingTaskmapReportingTask(ReportingTaskNode taskNode, ControllerServiceProvider serviceProvider) private org.apache.nifi.flow.VersionedResourceDefinitionmapResourceDefinition(org.apache.nifi.components.resource.ResourceDefinition resourceDefinition) private org.apache.nifi.flow.ScheduledStatemapScheduledState(ScheduledState scheduledState)
-
Field Details
-
ENCRYPTED_PREFIX
- See Also:
-
ENCRYPTED_SUFFIX
- See Also:
-
extensionManager
-
flowMappingOptions
-
parameterValueMapper
-
versionedComponentIds
-
-
Constructor Details
-
NiFiRegistryFlowMapper
-
NiFiRegistryFlowMapper
public NiFiRegistryFlowMapper(ExtensionManager extensionManager, FlowMappingOptions flowMappingOptions)
-
-
Method Details
-
mapNonVersionedProcessGroup
public InstantiatedVersionedProcessGroup mapNonVersionedProcessGroup(ProcessGroup group, ControllerServiceProvider serviceProvider) Map the given process group to a versioned process group without any use of an actual flow registry even if the group is currently versioned in a registry.- Parameters:
group- the process group to mapserviceProvider- the controller service provider to use for mapping- Returns:
- a complete versioned process group without any registry related details
-
mapProcessGroup
public InstantiatedVersionedProcessGroup mapProcessGroup(ProcessGroup group, ControllerServiceProvider serviceProvider, FlowManager flowManager, boolean mapDescendantVersionedFlows) Map the given process group to a versioned process group using the provided registry client.- Parameters:
group- the process group to mapserviceProvider- the controller service provider to use for mappingflowManager- the registry client to use when retrieving versioning detailsmapDescendantVersionedFlows- true in order to include descendant flows in the mapped result- Returns:
- a complete versioned process group with applicable registry related details
-
applyVersionControlInformation
private boolean applyVersionControlInformation(ProcessGroup processGroup, org.apache.nifi.flow.VersionedProcessGroup versionedGroup, FlowManager flowManager, boolean mapDescendantVersionedFlows) -
mapGroup
private InstantiatedVersionedProcessGroup mapGroup(ProcessGroup group, ControllerServiceProvider serviceProvider, BiFunction<ProcessGroup, org.apache.nifi.flow.VersionedProcessGroup, Boolean> applyVersionControlInfo) -
mapGroup
private InstantiatedVersionedProcessGroup mapGroup(ProcessGroup group, ControllerServiceProvider serviceProvider, BiFunction<ProcessGroup, org.apache.nifi.flow.VersionedProcessGroup, Boolean> applyVersionControlInfo, boolean topLevel, Set<String> includedGroupIds, Map<String, org.apache.nifi.flow.ExternalControllerServiceReference> externalControllerServiceReferences) -
getId
-
generateVersionedComponentId
Generate a versioned component identifier based on the given component identifier. The result for a given component identifier is deterministic.- Parameters:
componentId- the component identifier to generate a versioned component identifier for- Returns:
- a deterministic versioned component identifier
-
getIdOrThrow
private <E extends Exception> String getIdOrThrow(String componentId, Supplier<E> exceptionSupplier) throws E - Throws:
E
-
getGroupId
-
mapConnection
-
mapConnectable
-
mapReportingTask
public org.apache.nifi.flow.VersionedReportingTask mapReportingTask(ReportingTaskNode taskNode, ControllerServiceProvider serviceProvider) -
mapFlowAnalysisRule
public org.apache.nifi.flow.VersionedFlowAnalysisRule mapFlowAnalysisRule(FlowAnalysisRuleNode flowAnalysisRuleNode, ControllerServiceProvider serviceProvider) -
mapParameterProvider
public org.apache.nifi.flow.VersionedParameterProvider mapParameterProvider(ParameterProviderNode parameterProviderNode, ControllerServiceProvider serviceProvider) -
mapFlowRegistryClient
public org.apache.nifi.flow.VersionedFlowRegistryClient mapFlowRegistryClient(FlowRegistryClientNode clientNode, ControllerServiceProvider serviceProvider) -
mapControllerService
public org.apache.nifi.flow.VersionedControllerService mapControllerService(ControllerServiceNode controllerService, ControllerServiceProvider serviceProvider, Set<String> includedGroupIds, Map<String, org.apache.nifi.flow.ExternalControllerServiceReference> externalControllerServiceReferences) -
mapProperties
private Map<String,String> mapProperties(ComponentNode component, ControllerServiceProvider serviceProvider) -
encrypt
-
isMappable
private boolean isMappable(PropertyDescriptor propertyDescriptor, PropertyConfiguration propertyConfiguration) -
mapPropertyDescriptors
private Map<String,org.apache.nifi.flow.VersionedPropertyDescriptor> mapPropertyDescriptors(ComponentNode component, ControllerServiceProvider serviceProvider, Set<String> includedGroupIds, Map<String, org.apache.nifi.flow.ExternalControllerServiceReference> externalControllerServiceReferences) -
mapResourceDefinition
private org.apache.nifi.flow.VersionedResourceDefinition mapResourceDefinition(org.apache.nifi.components.resource.ResourceDefinition resourceDefinition) -
mapBundle
-
mapControllerServiceApis
private List<org.apache.nifi.flow.ControllerServiceAPI> mapControllerServiceApis(ControllerServiceNode service) -
mapFunnel
-
mapLabel
-
mapPort
-
mapPosition
-
mapProcessor
public org.apache.nifi.flow.VersionedProcessor mapProcessor(ProcessorNode procNode, ControllerServiceProvider serviceProvider, Set<String> includedGroupIds, Map<String, org.apache.nifi.flow.ExternalControllerServiceReference> externalControllerServiceReferences) -
mapRemoteProcessGroup
public org.apache.nifi.flow.VersionedRemoteProcessGroup mapRemoteProcessGroup(RemoteProcessGroup remoteGroup) -
mapRemotePort
public org.apache.nifi.flow.VersionedRemoteGroupPort mapRemotePort(RemoteGroupPort remotePort, org.apache.nifi.flow.ComponentType componentType) -
mapBatchSettings
-
mapParameterContext
public org.apache.nifi.flow.VersionedParameterContext mapParameterContext(ParameterContext parameterContext) -
configureParameterProvider
private void configureParameterProvider(ParameterContext parameterContext, org.apache.nifi.flow.VersionedParameterContext versionedParameterContext) -
mapParameterContexts
public Map<String,org.apache.nifi.flow.VersionedParameterContext> mapParameterContexts(ProcessGroup processGroup, boolean mapDescendantVersionedFlows, Map<String, org.apache.nifi.flow.ParameterProviderReference> parameterProviderReferences) -
mapParameterContexts
private void mapParameterContexts(ProcessGroup processGroup, boolean mapDescendantVersionedFlows, Map<String, org.apache.nifi.flow.VersionedParameterContext> parameterContexts, Map<String, org.apache.nifi.flow.ParameterProviderReference> parameterProviderReferences) -
mapParameterContext
private void mapParameterContext(ParameterContext parameterContext, Map<String, org.apache.nifi.flow.VersionedParameterContext> parameterContexts, Map<String, org.apache.nifi.flow.ParameterProviderReference> parameterProviderReferences) -
mapParameters
private Set<org.apache.nifi.flow.VersionedParameter> mapParameters(ParameterContext parameterContext) -
mapParameter
private org.apache.nifi.flow.VersionedParameter mapParameter(ParameterContext parameterContext, ParameterDescriptor parameterDescriptor, Parameter parameter) -
createParameterProviderReference
private org.apache.nifi.flow.ParameterProviderReference createParameterProviderReference(ParameterContext parameterContext) -
mapParameter
-
mapParameter
-
createVersionedAsset
-
mapScheduledState
-