Class DebugFlow
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.standard.DebugFlow
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.processor.Processor
@Tags({"test","debug","processor","utility","flow","FlowFile"})
@CapabilityDescription("The DebugFlow processor aids testing and debugging the FlowFile framework by allowing various responses to be explicitly triggered in response to the receipt of a FlowFile or a timer event without a FlowFile if using timer or cron based scheduling. It can force responses needed to exercise or test various failure modes that can occur when a processor runs.")
public class DebugFlow
extends org.apache.nifi.processor.AbstractProcessor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate static enumprivate classprivate static enumprivate static class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final org.apache.nifi.components.PropertyDescriptorprivate final DebugFlow.FlowFileResponseprivate final DebugFlow.NoFlowFileResponse(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptorprivate Integerprivate Integerprivate Integerprivate Integerprivate Integerprivate Integerprivate Class<? extends RuntimeException> private Integerprivate Integerprivate Integerprivate Integerprivate Integerprivate Integer(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptorprivate Integerprivate Integerprivate Integerprivate Class<? extends RuntimeException> private Integerprivate Integerprivate Integer(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptor(package private) static final org.apache.nifi.components.PropertyDescriptorprivate final AtomicReference<List<org.apache.nifi.components.PropertyDescriptor>> (package private) static final org.apache.nifi.processor.Relationship(package private) static final org.apache.nifi.processor.Relationshipprivate final AtomicReference<Set<org.apache.nifi.processor.Relationship>> (package private) static final org.apache.nifi.components.PropertyDescriptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<org.apache.nifi.components.ValidationResult> customValidate(org.apache.nifi.components.ValidationContext validationContext) private voidSet<org.apache.nifi.processor.Relationship> protected List<org.apache.nifi.components.PropertyDescriptor> voidonScheduled(org.apache.nifi.processor.ProcessContext context) voidonStopped(org.apache.nifi.processor.ProcessContext context) voidonTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session) voidonUnscheduled(org.apache.nifi.processor.ProcessContext context) private voidsleep(long millis, boolean ignoreInterrupts) Methods inherited from class org.apache.nifi.processor.AbstractProcessor
onTriggerMethods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateProperties, migrateRelationships
-
Field Details
-
relationships
-
REL_SUCCESS
static final org.apache.nifi.processor.Relationship REL_SUCCESS -
REL_FAILURE
static final org.apache.nifi.processor.Relationship REL_FAILURE -
properties
-
FF_SUCCESS_ITERATIONS
static final org.apache.nifi.components.PropertyDescriptor FF_SUCCESS_ITERATIONS -
FF_FAILURE_ITERATIONS
static final org.apache.nifi.components.PropertyDescriptor FF_FAILURE_ITERATIONS -
FF_ROLLBACK_ITERATIONS
static final org.apache.nifi.components.PropertyDescriptor FF_ROLLBACK_ITERATIONS -
FF_ROLLBACK_YIELD_ITERATIONS
static final org.apache.nifi.components.PropertyDescriptor FF_ROLLBACK_YIELD_ITERATIONS -
FF_ROLLBACK_PENALTY_ITERATIONS
static final org.apache.nifi.components.PropertyDescriptor FF_ROLLBACK_PENALTY_ITERATIONS -
FF_EXCEPTION_ITERATIONS
static final org.apache.nifi.components.PropertyDescriptor FF_EXCEPTION_ITERATIONS -
FF_EXCEPTION_CLASS
static final org.apache.nifi.components.PropertyDescriptor FF_EXCEPTION_CLASS -
NO_FF_SKIP_ITERATIONS
static final org.apache.nifi.components.PropertyDescriptor NO_FF_SKIP_ITERATIONS -
NO_FF_EXCEPTION_ITERATIONS
static final org.apache.nifi.components.PropertyDescriptor NO_FF_EXCEPTION_ITERATIONS -
NO_FF_YIELD_ITERATIONS
static final org.apache.nifi.components.PropertyDescriptor NO_FF_YIELD_ITERATIONS -
NO_FF_EXCEPTION_CLASS
static final org.apache.nifi.components.PropertyDescriptor NO_FF_EXCEPTION_CLASS -
WRITE_ITERATIONS
static final org.apache.nifi.components.PropertyDescriptor WRITE_ITERATIONS -
CONTENT_SIZE
static final org.apache.nifi.components.PropertyDescriptor CONTENT_SIZE -
ON_SCHEDULED_SLEEP_TIME
static final org.apache.nifi.components.PropertyDescriptor ON_SCHEDULED_SLEEP_TIME -
ON_SCHEDULED_FAIL
static final org.apache.nifi.components.PropertyDescriptor ON_SCHEDULED_FAIL -
ON_UNSCHEDULED_SLEEP_TIME
static final org.apache.nifi.components.PropertyDescriptor ON_UNSCHEDULED_SLEEP_TIME -
ON_UNSCHEDULED_FAIL
static final org.apache.nifi.components.PropertyDescriptor ON_UNSCHEDULED_FAIL -
ON_STOPPED_SLEEP_TIME
static final org.apache.nifi.components.PropertyDescriptor ON_STOPPED_SLEEP_TIME -
ON_STOPPED_FAIL
static final org.apache.nifi.components.PropertyDescriptor ON_STOPPED_FAIL -
ON_TRIGGER_SLEEP_TIME
static final org.apache.nifi.components.PropertyDescriptor ON_TRIGGER_SLEEP_TIME -
CUSTOM_VALIDATE_SLEEP_TIME
static final org.apache.nifi.components.PropertyDescriptor CUSTOM_VALIDATE_SLEEP_TIME -
IGNORE_INTERRUPTS
static final org.apache.nifi.components.PropertyDescriptor IGNORE_INTERRUPTS -
flowFileMaxSuccess
-
flowFileMaxFailure
-
flowFileMaxRollback
-
flowFileMaxYield
-
flowFileMaxPenalty
-
flowFileMaxException
-
noFlowFileMaxSkip
-
noFlowFileMaxException
-
noFlowFileMaxYield
-
flowFileCurrSuccess
-
flowFileCurrFailure
-
flowFileCurrRollback
-
flowFileCurrYield
-
flowFileCurrPenalty
-
flowFileCurrException
-
noFlowFileCurrSkip
-
noFlowFileCurrException
-
noFlowFileCurrYield
-
flowFileExceptionClass
-
noFlowFileExceptionClass
-
curr_ff_resp
-
curr_noff_resp
-
-
Constructor Details
-
DebugFlow
public DebugFlow()
-
-
Method Details
-
getRelationships
- Specified by:
getRelationshipsin interfaceorg.apache.nifi.processor.Processor- Overrides:
getRelationshipsin classorg.apache.nifi.processor.AbstractSessionFactoryProcessor
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classorg.apache.nifi.components.AbstractConfigurableComponent
-
onScheduled
@OnScheduled public void onScheduled(org.apache.nifi.processor.ProcessContext context) throws ClassNotFoundException, InterruptedException -
onUnscheduled
@OnUnscheduled public void onUnscheduled(org.apache.nifi.processor.ProcessContext context) throws InterruptedException - Throws:
InterruptedException
-
onStopped
@OnStopped public void onStopped(org.apache.nifi.processor.ProcessContext context) throws InterruptedException - Throws:
InterruptedException
-
customValidate
protected Collection<org.apache.nifi.components.ValidationResult> customValidate(org.apache.nifi.components.ValidationContext validationContext) - Overrides:
customValidatein classorg.apache.nifi.components.AbstractConfigurableComponent
-
sleep
- Throws:
InterruptedException
-
fail
-
onTrigger
public void onTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session) throws org.apache.nifi.processor.exception.ProcessException - Specified by:
onTriggerin classorg.apache.nifi.processor.AbstractProcessor- Throws:
org.apache.nifi.processor.exception.ProcessException
-