Package org.apache.nifi.controller
Class AbstractControllerService
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
- All Implemented Interfaces:
ConfigurableComponent,ControllerService
public abstract class AbstractControllerService
extends AbstractConfigurableComponent
implements ControllerService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ConfigurationContextprivate booleanprivate Stringprivate ComponentLogprivate NodeTypeProviderprivate ControllerServiceLookupprivate StateManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidabstractStoreConfigContext(ConfigurationContext configContext) final voiddisabled()final voidenabled()protected ConfigurationContextprotected final ControllerServiceLookupprotected ComponentLogprotected final NodeTypeProviderprotected PropertyValuegetProperty(PropertyDescriptor descriptor) protected StateManagerprotected voidProvides a mechanism by which subclasses can perform initialization of the Controller Service before it is scheduled to be runfinal voidProvides the Controller Service with access to objects that may be of use throughout the life of the service.booleanMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
isStateful, migrateProperties
-
Field Details
-
identifier
-
serviceLookup
-
logger
-
stateManager
-
configurationContext
-
enabled
private volatile boolean enabled -
nodeTypeProvider
-
-
Constructor Details
-
AbstractControllerService
public AbstractControllerService()
-
-
Method Details
-
initialize
public final void initialize(ControllerServiceInitializationContext context) throws InitializationException Description copied from interface:ControllerServiceProvides the Controller Service with access to objects that may be of use throughout the life of the service. This method will be called before any properties are set- Specified by:
initializein interfaceControllerService- Parameters:
context- of initialization- Throws:
InitializationException- if unable to init
-
getIdentifier
- Specified by:
getIdentifierin interfaceConfigurableComponent- Returns:
- the unique identifier that the framework assigned to this component
-
getControllerServiceLookup
- Returns:
- the
ControllerServiceLookupthat was passed to theinit(ControllerServiceInitializationContext)method
-
getNodeTypeProvider
- Returns:
- the
NodeTypeProviderthat was passed to theinit(ControllerServiceInitializationContext)method
-
init
Provides a mechanism by which subclasses can perform initialization of the Controller Service before it is scheduled to be run- Parameters:
config- of initialization context- Throws:
InitializationException- if unable to init
-
enabled
-
disabled
-
isEnabled
public boolean isEnabled() -
getLogger
- Returns:
- the logger that has been provided to the component by the framework in its initialize method
-
getStateManager
- Returns:
- the StateManager that can be used to store and retrieve state for this Controller Service
-
abstractStoreConfigContext
-
abstractClearConfigContext
-
getConfigurationContext
-
getProperty
-