public abstract class AbstractSessionFactoryProcessor extends AbstractConfigurableComponent implements Processor
Provides a standard partial implementation of a Processor. This
implementation provides default behavior and various convenience hooks for
processing.
Implementation/Design note: This class follows the open/closed principle in a
fairly strict manner meaning that subclasses are free to customize behavior
in specifically designed points exclusively. If greater flexibility is
necessary then it is still possible to simply implement the Processor
interface.
Thread safe
| Modifier and Type | Field and Description |
|---|---|
private String |
description |
private String |
identifier |
private ProcessorLog |
logger |
private boolean |
scheduled |
private ControllerServiceLookup |
serviceLookup |
| Constructor and Description |
|---|
AbstractSessionFactoryProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected ControllerServiceLookup |
getControllerServiceLookup() |
String |
getIdentifier() |
protected ProcessorLog |
getLogger() |
Set<Relationship> |
getRelationships() |
protected void |
init(ProcessorInitializationContext context)
Provides subclasses the ability to perform initialization logic
|
void |
initialize(ProcessorInitializationContext context)
Provides the processor with access to objects that may be of use
throughout the life of the Processor
|
protected boolean |
isScheduled() |
String |
toString() |
void |
updateScheduledFalse() |
void |
updateScheduledTrue() |
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate String identifier
private ProcessorLog logger
private volatile boolean scheduled
private ControllerServiceLookup serviceLookup
private String description
public final void initialize(ProcessorInitializationContext context)
Processorinitialize in interface Processorcontext - of initializationprotected final ControllerServiceLookup getControllerServiceLookup()
ControllerServiceLookup that was passed to the
init(ProcessorInitializationContext) methodpublic Set<Relationship> getRelationships()
getRelationships in interface Processorprotected final ProcessorLog getLogger()
protected void init(ProcessorInitializationContext context)
context - in which to perform initializationprotected final boolean isScheduled()
true if the processor is scheduled to run,
false otherwise@OnScheduled public final void updateScheduledTrue()
@OnUnscheduled public final void updateScheduledFalse()
public final String getIdentifier()
getIdentifier in interface ConfigurableComponentpublic String toString()
toString in class AbstractConfigurableComponentCopyright © 2015 Apache NiFi Project. All rights reserved.