public abstract class AbstractControllerService extends AbstractConfigurableComponent implements ControllerService
| Modifier and Type | Field and Description |
|---|---|
private ConfigurationContext |
configContext |
private String |
identifier |
private ControllerServiceLookup |
serviceLookup |
| Constructor and Description |
|---|
AbstractControllerService() |
| Modifier and Type | Method and Description |
|---|---|
protected ControllerServiceLookup |
getControllerServiceLookup()
Returns the
ControllerServiceLookup that was passed to the
#init(ProcessorInitializationContext) method |
String |
getIdentifier()
Returns the unique identifier that the framework assigned to this
component
|
protected Map<PropertyDescriptor,String> |
getProperties()
Returns an unmodifiable map of all configured properties for this
ControllerService |
protected PropertyValue |
getProperty(PropertyDescriptor descriptor)
Returns the currently configured value for the given
PropertyDescriptor |
protected void |
init(ControllerServiceInitializationContext config)
Provides a mechanism by which subclasses can perform initialization of
the Reporting Task 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) |
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
public final void initialize(ControllerServiceInitializationContext context) throws InitializationException
ControllerServiceinitialize in interface ControllerServiceInitializationExceptionpublic String getIdentifier()
ConfigurableComponentgetIdentifier in interface ConfigurableComponent@OnConfigured public void onConfigurationChange(ConfigurationContext context)
protected final PropertyValue getProperty(PropertyDescriptor descriptor)
PropertyDescriptordescriptor - 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 - InitializationExceptionCopyright © 2015 Apache NiFi(incubating) Project. All rights reserved.