public interface ConfigurableComponent
Modifier and Type | Method and Description |
---|---|
String |
getIdentifier() |
PropertyDescriptor |
getPropertyDescriptor(String name) |
List<PropertyDescriptor> |
getPropertyDescriptors()
Returns a
List of all PropertyDescriptor s that this
component supports. |
void |
onPropertyModified(PropertyDescriptor descriptor,
String oldValue,
String newValue)
Hook method allowing subclasses to eagerly react to a configuration
change for the given property descriptor.
|
Collection<ValidationResult> |
validate(ValidationContext context)
Validates a set of properties, returning ValidationResults for any
invalid properties.
|
Collection<ValidationResult> validate(ValidationContext context)
context
- of validationPropertyDescriptor getPropertyDescriptor(String name)
name
- to lookup the descriptornull
void onPropertyModified(PropertyDescriptor descriptor, String oldValue, String newValue)
OnConfigurationRestored
annotation to a method - this will allow the Processor to know when configuration has
been restored, so that it can determine whether or not to perform some action in the
onPropertyModified method.descriptor
- the descriptor for the property being modifiedoldValue
- the value that was previously set, or null if no value
was previously set for this propertynewValue
- the new property value or if null indicates the property
was removedList<PropertyDescriptor> getPropertyDescriptors()
List
of all PropertyDescriptor
s that this
component supports.String getIdentifier()
Copyright © 2019 Apache NiFi Project. All rights reserved.