Package org.apache.nifi.migration
Class StandardControllerServiceFactory
java.lang.Object
org.apache.nifi.migration.StandardControllerServiceFactory
- All Implemented Interfaces:
ControllerServiceFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ComponentNodeprivate final ExtensionManagerprivate final FlowManagerprivate static final org.slf4j.Loggerprivate final ControllerServiceProvider -
Constructor Summary
ConstructorsConstructorDescriptionStandardControllerServiceFactory(ExtensionManager extensionManager, FlowManager flowManager, ControllerServiceProvider serviceProvider, ComponentNode creator) -
Method Summary
Modifier and TypeMethodDescriptionprivate ControllerServiceCreationDetailsalreadyExists(ControllerServiceNode serviceNode, String type) create(ControllerServiceCreationDetails creationDetails) private BundledetermineBundle(String implementationClassName) protected StringdetermineServiceId(String className, Map<String, String> propertyValues) Creates a deterministic UUID for the Controller Service based on the Process Group that the creator resides in, if any, the implementation class name, and the given propertiesgetCreationDetails(String implementationClassName, Map<String, String> propertyValues) protected Bundleprivate booleanisEnable()private booleanisImplementation(Class<?> clazz, String className) private ControllerServiceCreationDetailstoBeCreated(String serviceId, String type, BundleCoordinate bundleCoordinate, Map<String, String> propertyValues)
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
extensionManager
-
flowManager
-
serviceProvider
-
creator
-
-
Constructor Details
-
StandardControllerServiceFactory
public StandardControllerServiceFactory(ExtensionManager extensionManager, FlowManager flowManager, ControllerServiceProvider serviceProvider, ComponentNode creator)
-
-
Method Details
-
getCreationDetails
public ControllerServiceCreationDetails getCreationDetails(String implementationClassName, Map<String, String> propertyValues) - Specified by:
getCreationDetailsin interfaceControllerServiceFactory
-
create
- Specified by:
createin interfaceControllerServiceFactory
-
isEnable
private boolean isEnable() -
toBeCreated
private ControllerServiceCreationDetails toBeCreated(String serviceId, String type, BundleCoordinate bundleCoordinate, Map<String, String> propertyValues) -
alreadyExists
private ControllerServiceCreationDetails alreadyExists(ControllerServiceNode serviceNode, String type) -
isImplementation
-
determineServiceId
Creates a deterministic UUID for the Controller Service based on the Process Group that the creator resides in, if any, the implementation class name, and the given properties- Parameters:
className- the classname of the Controller ServicepropertyValues- the property values- Returns:
- a UUID for the Controller Service
-
determineBundle
-
getFrameworkBundle
-