Package org.apache.nifi.registry.flow
Class FlowAnalyzingRegistryClientNode
java.lang.Object
org.apache.nifi.registry.flow.FlowAnalyzingRegistryClientNode
- All Implemented Interfaces:
Authorizable,ComponentAuthorizable,ComponentNode,FlowRegistryClientNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FlowAnalyzerprivate final FlowManagerprivate final NiFiRegistryFlowMapperprivate static final org.slf4j.Loggerprivate final FlowRegistryClientNodeprivate final RuleViolationsManagerprivate final ControllerServiceProvider -
Constructor Summary
ConstructorsConstructorDescriptionFlowAnalyzingRegistryClientNode(FlowRegistryClientNode node, ControllerServiceProvider serviceProvider, FlowAnalyzer flowAnalyzer, RuleViolationsManager ruleViolationsManager, FlowManager flowManager, NiFiRegistryFlowMapper flowMapper) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleananalyzeProcessGroupToRegister(org.apache.nifi.flow.VersionedProcessGroup snapshot) deregisterFlow(FlowRegistryClientUserContext context, FlowLocation flowLocation) generateFlowId(String flowName) getAdditionalClasspathResources(List<PropertyDescriptor> propertyDescriptors) getBranches(FlowRegistryClientUserContext context) getBucket(FlowRegistryClientUserContext context, BucketLocation bucketLocation) getBuckets(FlowRegistryClientUserContext context, String branch) Class<?> getEffectivePropertyValue(PropertyDescriptor property) getFlow(FlowRegistryClientUserContext context, FlowLocation flowLocation) getFlowContents(FlowRegistryClientUserContext context, FlowVersionLocation flowVersionLocation, boolean fetchRemoteFlows) getFlows(FlowRegistryClientUserContext context, BucketLocation bucketLocation) getFlowVersions(FlowRegistryClientUserContext context, FlowLocation flowLocation) getLatestVersion(FlowRegistryClientUserContext context, FlowLocation flowLocation) getName()getProperty(PropertyDescriptor property) getPropertyDescriptor(String name) getRawPropertyValue(PropertyDescriptor property) getValidationStatus(long timeout, TimeUnit unit) booleanbooleanbooleanbooleanbooleanisReferencingParameter(String parameterName) booleanbooleanbooleanbooleanisStorageLocationApplicable(String location) booleanvoidonParametersModified(Map<String, ParameterUpdate> parameterUpdates) voidperformValidation(Map<PropertyDescriptor, PropertyConfiguration> properties, String annotationData, ParameterContext parameterContext) performValidation(ValidationContext validationContext) voidregisterFlow(FlowRegistryClientUserContext context, RegisteredFlow flow) registerFlowSnapshot(FlowRegistryClientUserContext context, RegisteredFlow flow, org.apache.nifi.flow.VersionedProcessGroup snapshot, Map<String, org.apache.nifi.flow.ExternalControllerServiceReference> externalControllerServices, Map<String, org.apache.nifi.flow.VersionedParameterContext> parameterContexts, Map<String, org.apache.nifi.flow.ParameterProviderReference> parameterProviderReferences, String comments, String expectedVersion, RegisterAction registerAction) voidvoidvoidvoidvoidsetAnnotationData(String data) voidsetComponent(LoggableComponent<FlowRegistryClient> component) voidsetDescription(String description) voidsetExtensionMissing(boolean extensionMissing) voidvoidsetProperties(Map<String, String> properties, boolean allowRemovalOfRequiresProperties, Set<String> sensitiveDynamicPropertyNames) voidverifyCanUpdateBundle(BundleCoordinate bundleCoordinate) voidverifyCanUpdateProperties(Map<String, String> properties) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.nifi.authorization.resource.Authorizable
authorize, checkAuthorization, getRequestedResource, isAuthorizedMethods inherited from interface org.apache.nifi.controller.ComponentNode
authorize, checkAuthorization, getClassLoaderIsolationKey, isSupportsSensitiveDynamicProperties, setProperties
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
node
-
serviceProvider
-
flowAnalyzer
-
ruleViolationsManager
-
flowManager
-
flowMapper
-
-
Constructor Details
-
FlowAnalyzingRegistryClientNode
public FlowAnalyzingRegistryClientNode(FlowRegistryClientNode node, ControllerServiceProvider serviceProvider, FlowAnalyzer flowAnalyzer, RuleViolationsManager ruleViolationsManager, FlowManager flowManager, NiFiRegistryFlowMapper flowMapper)
-
-
Method Details
-
registerFlowSnapshot
public RegisteredFlowSnapshot registerFlowSnapshot(FlowRegistryClientUserContext context, RegisteredFlow flow, org.apache.nifi.flow.VersionedProcessGroup snapshot, Map<String, org.apache.nifi.flow.ExternalControllerServiceReference> externalControllerServices, Map<String, throws FlowRegistryException, IOExceptionorg.apache.nifi.flow.VersionedParameterContext> parameterContexts, Map<String, org.apache.nifi.flow.ParameterProviderReference> parameterProviderReferences, String comments, String expectedVersion, RegisterAction registerAction) - Specified by:
registerFlowSnapshotin interfaceFlowRegistryClientNode- Throws:
FlowRegistryExceptionIOException
-
analyzeProcessGroupToRegister
private boolean analyzeProcessGroupToRegister(org.apache.nifi.flow.VersionedProcessGroup snapshot) -
getParentAuthorizable
- Specified by:
getParentAuthorizablein interfaceAuthorizable
-
getResource
- Specified by:
getResourcein interfaceAuthorizable
-
getProcessGroupIdentifier
- Specified by:
getProcessGroupIdentifierin interfaceComponentAuthorizable
-
getIdentifier
- Specified by:
getIdentifierin interfaceComponentAuthorizable- Specified by:
getIdentifierin interfaceComponentNode
-
getName
- Specified by:
getNamein interfaceComponentNode
-
setName
- Specified by:
setNamein interfaceComponentNode
-
getAnnotationData
- Specified by:
getAnnotationDatain interfaceComponentNode
-
setAnnotationData
- Specified by:
setAnnotationDatain interfaceComponentNode
-
setProperties
public void setProperties(Map<String, String> properties, boolean allowRemovalOfRequiresProperties, Set<String> sensitiveDynamicPropertyNames) - Specified by:
setPropertiesin interfaceComponentNode
-
verifyCanUpdateProperties
- Specified by:
verifyCanUpdatePropertiesin interfaceComponentNode
-
getReferencedParameterNames
- Specified by:
getReferencedParameterNamesin interfaceComponentNode
-
isReferencingParameter
public boolean isReferencingParameter()- Specified by:
isReferencingParameterin interfaceComponentNode
-
isReferencingParameter
- Specified by:
isReferencingParameterin interfaceComponentNode
-
onParametersModified
- Specified by:
onParametersModifiedin interfaceComponentNode
-
getReferencedAttributeNames
- Specified by:
getReferencedAttributeNamesin interfaceComponentNode
-
pauseValidationTrigger
public void pauseValidationTrigger()- Specified by:
pauseValidationTriggerin interfaceComponentNode
-
resumeValidationTrigger
public void resumeValidationTrigger()- Specified by:
resumeValidationTriggerin interfaceComponentNode
-
getRawPropertyValues
- Specified by:
getRawPropertyValuesin interfaceComponentNode
-
getEffectivePropertyValues
- Specified by:
getEffectivePropertyValuesin interfaceComponentNode
-
getProperty
- Specified by:
getPropertyin interfaceComponentNode
-
getEffectivePropertyValue
- Specified by:
getEffectivePropertyValuein interfaceComponentNode
-
getRawPropertyValue
- Specified by:
getRawPropertyValuein interfaceComponentNode
-
getProperties
- Specified by:
getPropertiesin interfaceComponentNode
-
reload
- Specified by:
reloadin interfaceComponentNode- Throws:
Exception
-
refreshProperties
public void refreshProperties()- Specified by:
refreshPropertiesin interfaceComponentNode
-
getAdditionalClasspathResources
- Specified by:
getAdditionalClasspathResourcesin interfaceComponentNode
-
getBundleCoordinate
- Specified by:
getBundleCoordinatein interfaceComponentNode
-
getComponent
- Specified by:
getComponentin interfaceComponentNode
-
getLogger
- Specified by:
getLoggerin interfaceComponentNode
-
isExtensionMissing
public boolean isExtensionMissing()- Specified by:
isExtensionMissingin interfaceComponentNode
-
setExtensionMissing
public void setExtensionMissing(boolean extensionMissing) - Specified by:
setExtensionMissingin interfaceComponentNode
-
verifyCanUpdateBundle
- Specified by:
verifyCanUpdateBundlein interfaceComponentNode- Throws:
IllegalStateException
-
isReloadAdditionalResourcesNecessary
public boolean isReloadAdditionalResourcesNecessary()- Specified by:
isReloadAdditionalResourcesNecessaryin interfaceComponentNode
-
reloadAdditionalResourcesIfNecessary
public void reloadAdditionalResourcesIfNecessary()- Specified by:
reloadAdditionalResourcesIfNecessaryin interfaceComponentNode
-
resetValidationState
public void resetValidationState()- Specified by:
resetValidationStatein interfaceComponentNode
-
getValidationErrors
- Specified by:
getValidationErrorsin interfaceComponentNode
-
getComponentType
- Specified by:
getComponentTypein interfaceComponentNode
-
getComponentClass
- Specified by:
getComponentClassin interfaceComponentNode
-
getCanonicalClassName
- Specified by:
getCanonicalClassNamein interfaceComponentNode
-
isRestricted
public boolean isRestricted()- Specified by:
isRestrictedin interfaceComponentNode
-
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecatedin interfaceComponentNode
-
isValidationNecessary
public boolean isValidationNecessary()- Specified by:
isValidationNecessaryin interfaceComponentNode
-
getValidationStatus
- Specified by:
getValidationStatusin interfaceComponentNode
-
getValidationStatus
- Specified by:
getValidationStatusin interfaceComponentNode
-
performValidation
- Specified by:
performValidationin interfaceComponentNode
-
performValidation
- Specified by:
performValidationin interfaceComponentNode
-
performValidation
public ValidationState performValidation(Map<PropertyDescriptor, PropertyConfiguration> properties, String annotationData, ParameterContext parameterContext) - Specified by:
performValidationin interfaceComponentNode
-
getPropertyDescriptors
- Specified by:
getPropertyDescriptorsin interfaceComponentNode
-
getPropertyDescriptor
- Specified by:
getPropertyDescriptorin interfaceComponentNode
-
isSensitiveDynamicProperty
- Specified by:
isSensitiveDynamicPropertyin interfaceComponentNode
-
getParentProcessGroup
- Specified by:
getParentProcessGroupin interfaceComponentNode
-
getParameterLookup
- Specified by:
getParameterLookupin interfaceComponentNode
-
getDescription
- Specified by:
getDescriptionin interfaceFlowRegistryClientNode
-
setDescription
- Specified by:
setDescriptionin interfaceFlowRegistryClientNode
-
isStorageLocationApplicable
- Specified by:
isStorageLocationApplicablein interfaceFlowRegistryClientNode
-
isBranchingSupported
public boolean isBranchingSupported()- Specified by:
isBranchingSupportedin interfaceFlowRegistryClientNode
-
getBranches
public Set<FlowRegistryBranch> getBranches(FlowRegistryClientUserContext context) throws FlowRegistryException, IOException - Specified by:
getBranchesin interfaceFlowRegistryClientNode- Throws:
FlowRegistryExceptionIOException
-
getDefaultBranch
public FlowRegistryBranch getDefaultBranch(FlowRegistryClientUserContext context) throws FlowRegistryException, IOException - Specified by:
getDefaultBranchin interfaceFlowRegistryClientNode- Throws:
FlowRegistryExceptionIOException
-
getBuckets
public Set<FlowRegistryBucket> getBuckets(FlowRegistryClientUserContext context, String branch) throws FlowRegistryException, IOException - Specified by:
getBucketsin interfaceFlowRegistryClientNode- Throws:
FlowRegistryExceptionIOException
-
getBucket
public FlowRegistryBucket getBucket(FlowRegistryClientUserContext context, BucketLocation bucketLocation) throws FlowRegistryException, IOException - Specified by:
getBucketin interfaceFlowRegistryClientNode- Throws:
FlowRegistryExceptionIOException
-
registerFlow
public RegisteredFlow registerFlow(FlowRegistryClientUserContext context, RegisteredFlow flow) throws FlowRegistryException, IOException - Specified by:
registerFlowin interfaceFlowRegistryClientNode- Throws:
FlowRegistryExceptionIOException
-
deregisterFlow
public RegisteredFlow deregisterFlow(FlowRegistryClientUserContext context, FlowLocation flowLocation) throws FlowRegistryException, IOException - Specified by:
deregisterFlowin interfaceFlowRegistryClientNode- Throws:
FlowRegistryExceptionIOException
-
getFlow
public RegisteredFlow getFlow(FlowRegistryClientUserContext context, FlowLocation flowLocation) throws FlowRegistryException, IOException - Specified by:
getFlowin interfaceFlowRegistryClientNode- Throws:
FlowRegistryExceptionIOException
-
getFlows
public Set<RegisteredFlow> getFlows(FlowRegistryClientUserContext context, BucketLocation bucketLocation) throws FlowRegistryException, IOException - Specified by:
getFlowsin interfaceFlowRegistryClientNode- Throws:
FlowRegistryExceptionIOException
-
getFlowContents
public FlowSnapshotContainer getFlowContents(FlowRegistryClientUserContext context, FlowVersionLocation flowVersionLocation, boolean fetchRemoteFlows) throws FlowRegistryException, IOException - Specified by:
getFlowContentsin interfaceFlowRegistryClientNode- Throws:
FlowRegistryExceptionIOException
-
getFlowVersions
public Set<RegisteredFlowSnapshotMetadata> getFlowVersions(FlowRegistryClientUserContext context, FlowLocation flowLocation) throws FlowRegistryException, IOException - Specified by:
getFlowVersionsin interfaceFlowRegistryClientNode- Throws:
FlowRegistryExceptionIOException
-
getLatestVersion
public Optional<String> getLatestVersion(FlowRegistryClientUserContext context, FlowLocation flowLocation) throws FlowRegistryException, IOException - Specified by:
getLatestVersionin interfaceFlowRegistryClientNode- Throws:
FlowRegistryExceptionIOException
-
generateFlowId
- Specified by:
generateFlowIdin interfaceFlowRegistryClientNode- Throws:
IOExceptionFlowRegistryException
-
setComponent
- Specified by:
setComponentin interfaceFlowRegistryClientNode
-