public abstract class AbstractControllerService extends AbstractConfigurableComponent implements ControllerService
| Modifier and Type | Field and Description |
|---|---|
private ConfigurationContext |
configContext |
private String |
identifier |
private ComponentLog |
logger |
private ControllerServiceLookup |
serviceLookup |
private StateManager |
stateManager |
| Constructor and Description |
|---|
AbstractControllerService() |
| Modifier and Type | Method and Description |
|---|---|
protected ControllerServiceLookup |
getControllerServiceLookup() |
String |
getIdentifier() |
protected ComponentLog |
getLogger() |
protected Map<PropertyDescriptor,String> |
getProperties()
Deprecated.
will be removed. Instead use config context as passed to OnEnabled annotated methods
|
protected PropertyValue |
getProperty(PropertyDescriptor descriptor)
Deprecated.
will be removed. Instead use config context as passed to OnEnabled annotated methods
|
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.
|
void |
onConfigurationChange(ConfigurationContext context)
Deprecated.
When methods annotated with OnEnabled are called the config context is supplied
|
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate String identifier
private ControllerServiceLookup serviceLookup
private volatile ConfigurationContext configContext
private ComponentLog logger
private StateManager stateManager
public final void initialize(ControllerServiceInitializationContext context) throws InitializationException
ControllerServiceinitialize in interface ControllerServicecontext - of initializationInitializationException - if unable to initpublic String getIdentifier()
getIdentifier in interface ConfigurableComponent@Deprecated @OnConfigured public void onConfigurationChange(ConfigurationContext context)
context - config context@Deprecated protected final PropertyValue getProperty(PropertyDescriptor descriptor)
descriptor - to retrieve value ofPropertyDescriptor@Deprecated protected final Map<PropertyDescriptor,String> getProperties()
ControllerServiceprotected final ControllerServiceLookup getControllerServiceLookup()
ControllerServiceLookup that was passed to the
#init(ProcessorInitializationContext) methodprotected void init(ControllerServiceInitializationContext config) throws InitializationException
config - of initialization contextInitializationException - if unable to initprotected ComponentLog getLogger()
protected StateManager getStateManager()
Copyright © 2017 Apache NiFi Project. All rights reserved.