@Tags(value={"one","two","three"}) @CapabilityDescription(value="This is a processor that is used to test documentation.") @WritesAttribute(attribute="first",description="this is the first attribute i write") @WritesAttribute(attribute="second") @ReadsAttribute(attribute="incoming", description="this specifies the format of the thing") @SeeAlso(value={FullyDocumentedControllerService.class,FullyDocumentedReportingTask.class}, classNames="org.apache.nifi.processor.ExampleProcessor") @DynamicProperty(name="Relationship Name", supportsExpressionLanguage=true, value="some XPath", description="Routes FlowFiles to relationships based on XPath") @DynamicRelationship(name="name from dynamic property", description="all files that match the properties XPath") @Stateful(scopes={CLUSTER,LOCAL}, description="state management description") @Restricted(value="processor restriction description") @DeprecationNotice(alternatives={FullyDocumentedProcessor.class,FullyDocumentedReportingTask.class}) public class DeprecatedProcessor extends AbstractProcessor
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptor |
DIRECTORY |
static PropertyDescriptor |
OPTIONAL_PROPERTY |
static PropertyDescriptor |
POLLING_INTERVAL |
static PropertyDescriptor |
RECURSE |
static Relationship |
REL_FAILURE |
static Relationship |
REL_SUCCESS |
static PropertyDescriptor |
SERVICE_PROPERTY |
static PropertyDescriptor |
TYPE_PROPERTY |
Constructor and Description |
---|
DeprecatedProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
getOnRemovedArgs() |
int |
getOnRemovedNoArgs() |
int |
getOnShutdownArgs() |
int |
getOnShutdownNoArgs() |
java.util.Set<Relationship> |
getRelationships() |
protected PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(java.lang.String propertyDescriptorName)
Used to allow subclasses to determine what PropertyDescriptor if any to
use when a property is requested for which a descriptor is not already
registered.
|
protected java.util.List<PropertyDescriptor> |
getSupportedPropertyDescriptors()
Allows subclasses to register which property descriptor objects are
supported.
|
protected void |
init(ProcessorInitializationContext context)
Provides subclasses the ability to perform initialization logic
|
void |
onRemovedArgs(ProcessContext context) |
void |
onRemovedNoArgs() |
void |
onShutdownArgs(ProcessContext context) |
void |
onShutdownNoArgs() |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
onTrigger
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public static final PropertyDescriptor DIRECTORY
public static final PropertyDescriptor RECURSE
public static final PropertyDescriptor POLLING_INTERVAL
public static final PropertyDescriptor OPTIONAL_PROPERTY
public static final PropertyDescriptor TYPE_PROPERTY
public static final PropertyDescriptor SERVICE_PROPERTY
public static final Relationship REL_SUCCESS
public static final Relationship REL_FAILURE
protected void init(ProcessorInitializationContext context)
AbstractSessionFactoryProcessor
init
in class AbstractSessionFactoryProcessor
context
- in which to perform initializationprotected java.util.List<PropertyDescriptor> getSupportedPropertyDescriptors()
AbstractConfigurableComponent
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
public java.util.Set<Relationship> getRelationships()
getRelationships
in interface Processor
getRelationships
in class AbstractSessionFactoryProcessor
public void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger
in class AbstractProcessor
ProcessException
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(java.lang.String propertyDescriptorName)
AbstractConfigurableComponent
Used to allow subclasses to determine what PropertyDescriptor if any to use when a property is requested for which a descriptor is not already registered. By default this method simply returns a null descriptor. By overriding this method processor implementations can support dynamic properties since this allows them to register properties on demand. It is acceptable for a dynamically generated property to indicate it is required so long as it is understood it is only required once set. Dynamic properties by definition cannot be required until used.
This method should be side effect free in the subclasses in terms of how often it is called for a given property name because there is guarantees how often it will be called for a given property name.
Default is null.
getSupportedDynamicPropertyDescriptor
in class AbstractConfigurableComponent
propertyDescriptorName
- used to lookup if any property descriptors exist for that name@OnRemoved public void onRemovedNoArgs()
@OnRemoved public void onRemovedArgs(ProcessContext context)
@OnShutdown public void onShutdownNoArgs()
@OnShutdown public void onShutdownArgs(ProcessContext context)
public int getOnRemovedNoArgs()
public int getOnRemovedArgs()
public int getOnShutdownNoArgs()
public int getOnShutdownArgs()