public class BaseScriptedLookupService extends AbstractScriptedControllerService
| Modifier and Type | Field and Description |
|---|---|
protected File |
kerberosConfigFile |
protected File |
kerberosServiceKeytab |
protected String |
kerberosServicePrincipal |
protected AtomicReference<LookupService> |
lookupService |
configurationContext, scriptEngine, scriptingComponentHelper, scriptNeedsReload, validationResults| Constructor and Description |
|---|
BaseScriptedLookupService() |
| Modifier and Type | Method and Description |
|---|---|
protected PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
Returns a PropertyDescriptor for the given name.
|
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors()
Returns a list of property descriptors supported by this processor.
|
protected void |
init(ControllerServiceInitializationContext context) |
void |
onDisabled(ConfigurationContext context) |
void |
onEnabled(ConfigurationContext context) |
void |
onPropertyModified(PropertyDescriptor descriptor,
String oldValue,
String newValue)
Handles changes to this processor's properties.
|
protected boolean |
reloadScript(String scriptBody)
Reloads the script RecordReaderFactory.
|
void |
setup() |
customValidate, reloadScriptBody, reloadScriptFileabstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, initialize, isEnabledequals, getPropertyDescriptor, getPropertyDescriptors, hashCode, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, validateprotected final AtomicReference<LookupService> lookupService
protected volatile String kerberosServicePrincipal
protected volatile File kerberosConfigFile
protected volatile File kerberosServiceKeytab
protected void init(ControllerServiceInitializationContext context)
init in class AbstractControllerServiceprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractScriptedControllerServiceprotected PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
getSupportedDynamicPropertyDescriptor in class AbstractScriptedControllerServicepropertyDescriptorName - used to lookup if any property descriptors
exist for that namepublic void onPropertyModified(PropertyDescriptor descriptor, String oldValue, String newValue)
onPropertyModified in interface ConfigurableComponentonPropertyModified in class AbstractScriptedControllerServicedescriptor - of the modified propertyoldValue - non-null property value (previous)newValue - the new property value or if null indicates the property@OnEnabled public void onEnabled(ConfigurationContext context)
onEnabled in class AbstractScriptedControllerService@OnDisabled public void onDisabled(ConfigurationContext context)
public void setup()
setup in class AbstractScriptedControllerServiceprotected boolean reloadScript(String scriptBody)
reloadScript in class AbstractScriptedControllerServicescriptBody - An input stream associated with the script contentCopyright © 2021 Apache NiFi Project. All rights reserved.