public abstract class AbstractControllerService extends AbstractConfigurableComponent implements ControllerService
| Modifier and Type | Field and Description |
|---|---|
private ConfigurationContext |
configurationContext |
private boolean |
enabled |
private String |
identifier |
private ComponentLog |
logger |
private NodeTypeProvider |
nodeTypeProvider |
private ControllerServiceLookup |
serviceLookup |
private StateManager |
stateManager |
| Constructor and Description |
|---|
AbstractControllerService() |
| Modifier and Type | Method and Description |
|---|---|
void |
abstractClearConfigContext() |
void |
abstractStoreConfigContext(ConfigurationContext configContext) |
void |
disabled() |
void |
enabled() |
protected ConfigurationContext |
getConfigurationContext() |
protected ControllerServiceLookup |
getControllerServiceLookup() |
String |
getIdentifier() |
protected ComponentLog |
getLogger() |
protected NodeTypeProvider |
getNodeTypeProvider() |
protected PropertyValue |
getProperty(PropertyDescriptor descriptor) |
protected StateManager |
getStateManager() |
protected void |
init(ControllerServiceInitializationContext config)
Provides a mechanism by which subclasses can perform initialization of
the Controller Service before it is scheduled to be run
|
void |
initialize(ControllerServiceInitializationContext context)
Provides the Controller Service with access to objects that may be of use
throughout the life of the service.
|
boolean |
isEnabled() |
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate String identifier
private ControllerServiceLookup serviceLookup
private ComponentLog logger
private StateManager stateManager
private volatile ConfigurationContext configurationContext
private volatile boolean enabled
private NodeTypeProvider nodeTypeProvider
public final void initialize(ControllerServiceInitializationContext context) throws InitializationException
ControllerServiceinitialize in interface ControllerServicecontext - of initializationInitializationException - if unable to initpublic String getIdentifier()
getIdentifier in interface ConfigurableComponentprotected final ControllerServiceLookup getControllerServiceLookup()
ControllerServiceLookup that was passed to the
init(ControllerServiceInitializationContext) methodprotected final NodeTypeProvider getNodeTypeProvider()
NodeTypeProvider that was passed to the
init(ControllerServiceInitializationContext) methodprotected void init(ControllerServiceInitializationContext config) throws InitializationException
config - of initialization contextInitializationException - if unable to init@OnEnabled public final void enabled()
@OnDisabled public final void disabled()
public boolean isEnabled()
protected ComponentLog getLogger()
protected StateManager getStateManager()
@OnEnabled public final void abstractStoreConfigContext(ConfigurationContext configContext)
@OnDisabled public final void abstractClearConfigContext()
protected ConfigurationContext getConfigurationContext()
protected PropertyValue getProperty(PropertyDescriptor descriptor)
Copyright © 2022 Apache NiFi Project. All rights reserved.