Package org.apache.nifi.registry.flow
Class StandardFlowRegistryClientNode
java.lang.Object
org.apache.nifi.controller.AbstractComponentNode
org.apache.nifi.registry.flow.StandardFlowRegistryClientNode
- All Implemented Interfaces:
Authorizable,ComponentAuthorizable,ComponentNode,FlowRegistryClientNode
public final class StandardFlowRegistryClientNode
extends AbstractComponentNode
implements FlowRegistryClientNode
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicReference<LoggableComponent<FlowRegistryClient>> private Stringprivate final FlowManagerprivate static final org.slf4j.Loggerprivate final Authorizableprivate final ControllerServiceProvider -
Constructor Summary
ConstructorsConstructorDescriptionStandardFlowRegistryClientNode(Authorizable parent, FlowManager flowManager, LoggableComponent<FlowRegistryClient> client, String id, ValidationContextFactory validationContextFactory, ControllerServiceProvider serviceProvider, String componentType, String componentCanonicalClass, ReloadComponent reloadComponent, ExtensionManager extensionManager, ValidationTrigger validationTrigger, boolean isExtensionMissing) -
Method Summary
Modifier and TypeMethodDescriptionprivate RegisteredFlowSnapshotcreateRegisteredFlowSnapshot(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) deregisterFlow(FlowRegistryClientUserContext context, FlowLocation flowLocation) private <T> Tprivate Stringprivate RegisteredFlowSnapshotfetchFlowContents(FlowRegistryClientUserContext context, org.apache.nifi.flow.VersionedFlowCoordinates coordinates, boolean fetchRemoteFlows) generateFlowId(String flowName) getBranches(FlowRegistryClientUserContext context) getBucket(FlowRegistryClientUserContext context, BucketLocation bucketLocation) getBuckets(FlowRegistryClientUserContext context, String branch) Class<?> getConfigurationContext(FlowRegistryClientUserContext clientContext) 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) protected ParameterContextprivate List<FlowRegistryClientNode> getRegistryClientsForInternalFlow(String storageLocation) booleanbooleanbooleanbooleanisStorageLocationApplicable(String location) booleanpopulateVersionedContentsRecursively(FlowRegistryClientUserContext context, org.apache.nifi.flow.VersionedProcessGroup group, FlowSnapshotContainer snapshotContainer) registerFlow(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) voidvoidsetComponent(LoggableComponent<FlowRegistryClient> component) voidsetDescription(String description) protected List<ValidationResult> voidMethods inherited from class org.apache.nifi.controller.AbstractComponentNode
computeValidationErrors, decrementReferenceCounts, determineClasloaderIsolationKey, equals, getAdditionalClasspathResources, getAdditionalClasspathResources, getAdditionalClasspathResources, getAnnotationData, getCanonicalClassName, getComponentType, getEffectivePropertyValue, getEffectivePropertyValues, getExtensionManager, getIdentifier, getName, getProperties, getProperty, getPropertyDescriptor, getPropertyDescriptors, getRawPropertyValue, getRawPropertyValues, getReferencedAttributeNames, getReferencedParameterNames, getReloadComponent, getValidationContext, getValidationContextFactory, getValidationErrors, getValidationErrors, getValidationState, getValidationStatus, getValidationStatus, hashCode, incrementReferenceCounts, isClasspathDifferent, isExtensionMissing, isReferencingParameter, isReferencingParameter, isReloadAdditionalResourcesNecessary, isSensitiveDynamicProperty, mapRawValueToEffectiveValue, onParametersModified, onPropertyModified, overwriteProperties, pauseValidationTrigger, performFlowAnalysisOnThis, performValidation, performValidation, performValidation, refreshProperties, reloadAdditionalResourcesIfNecessary, resetValidationState, resumeValidationTrigger, setAdditionalResourcesFingerprint, setAnnotationData, setExtensionMissing, setName, setProperties, toString, validateReferencedControllerServices, verifyCanUpdateBundle, verifyCanUpdateProperties, verifyConfigMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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, getAdditionalClasspathResources, getAnnotationData, getCanonicalClassName, getClassLoaderIsolationKey, getComponentType, getEffectivePropertyValue, getEffectivePropertyValues, getIdentifier, getName, getProperties, getProperty, getPropertyDescriptor, getPropertyDescriptors, getRawPropertyValue, getRawPropertyValues, getReferencedAttributeNames, getReferencedParameterNames, getValidationErrors, getValidationStatus, getValidationStatus, isExtensionMissing, isReferencingParameter, isReferencingParameter, isReloadAdditionalResourcesNecessary, isSensitiveDynamicProperty, isSupportsSensitiveDynamicProperties, onParametersModified, pauseValidationTrigger, performValidation, performValidation, performValidation, refreshProperties, reloadAdditionalResourcesIfNecessary, resetValidationState, resumeValidationTrigger, setAnnotationData, setExtensionMissing, setName, setProperties, setProperties, verifyCanUpdateBundle, verifyCanUpdateProperties
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
flowManager
-
parent
-
client
-
serviceProvider
-
description
-
-
Constructor Details
-
StandardFlowRegistryClientNode
public StandardFlowRegistryClientNode(Authorizable parent, FlowManager flowManager, LoggableComponent<FlowRegistryClient> client, String id, ValidationContextFactory validationContextFactory, ControllerServiceProvider serviceProvider, String componentType, String componentCanonicalClass, ReloadComponent reloadComponent, ExtensionManager extensionManager, ValidationTrigger validationTrigger, boolean isExtensionMissing)
-
-
Method Details
-
getParentAuthorizable
- Specified by:
getParentAuthorizablein interfaceAuthorizable
-
getResource
- Specified by:
getResourcein interfaceAuthorizable
-
getProcessGroupIdentifier
- Specified by:
getProcessGroupIdentifierin interfaceComponentAuthorizable
-
validateConfig
- Specified by:
validateConfigin classAbstractComponentNode
-
verifyModifiable
- Specified by:
verifyModifiablein classAbstractComponentNode- Throws:
IllegalStateException
-
getParameterContext
- Specified by:
getParameterContextin classAbstractComponentNode
-
reload
- Specified by:
reloadin interfaceComponentNode- Throws:
Exception
-
getBundleCoordinate
- Specified by:
getBundleCoordinatein interfaceComponentNode
-
getComponent
- Specified by:
getComponentin interfaceComponentNode
-
getLogger
- Specified by:
getLoggerin interfaceComponentNode
-
getComponentClass
- Specified by:
getComponentClassin 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
-
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
-
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
-
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
-
execute
private <T> T execute(StandardFlowRegistryClientNode.FlowRegistryClientAction<T> action) throws FlowRegistryException, IOException - Throws:
FlowRegistryExceptionIOException
-
getConfigurationContext
-
getConfigurationContext
private FlowRegistryClientConfigurationContext getConfigurationContext(FlowRegistryClientUserContext clientContext) -
extractIdentity
-
populateVersionedContentsRecursively
private Map<String,org.apache.nifi.flow.VersionedParameterContext> populateVersionedContentsRecursively(FlowRegistryClientUserContext context, org.apache.nifi.flow.VersionedProcessGroup group, FlowSnapshotContainer snapshotContainer) throws FlowRegistryException - Throws:
FlowRegistryException
-
fetchFlowContents
private RegisteredFlowSnapshot fetchFlowContents(FlowRegistryClientUserContext context, org.apache.nifi.flow.VersionedFlowCoordinates coordinates, boolean fetchRemoteFlows) throws FlowRegistryException - Throws:
FlowRegistryException
-
getRegistryClientsForInternalFlow
-
createRegisteredFlowSnapshot
private RegisteredFlowSnapshot createRegisteredFlowSnapshot(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)
-