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
  • Field Details

    • relationships

      private final AtomicReference<Set<org.apache.nifi.processor.Relationship>> relationships
    • REL_SUCCESS

      static final org.apache.nifi.processor.Relationship REL_SUCCESS
    • REL_FAILURE

      static final org.apache.nifi.processor.Relationship REL_FAILURE
    • properties

      private final AtomicReference<List<org.apache.nifi.components.PropertyDescriptor>> 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

      private volatile Integer flowFileMaxSuccess
    • flowFileMaxFailure

      private volatile Integer flowFileMaxFailure
    • flowFileMaxRollback

      private volatile Integer flowFileMaxRollback
    • flowFileMaxYield

      private volatile Integer flowFileMaxYield
    • flowFileMaxPenalty

      private volatile Integer flowFileMaxPenalty
    • flowFileMaxException

      private volatile Integer flowFileMaxException
    • noFlowFileMaxSkip

      private volatile Integer noFlowFileMaxSkip
    • noFlowFileMaxException

      private volatile Integer noFlowFileMaxException
    • noFlowFileMaxYield

      private volatile Integer noFlowFileMaxYield
    • flowFileCurrSuccess

      private volatile Integer flowFileCurrSuccess
    • flowFileCurrFailure

      private volatile Integer flowFileCurrFailure
    • flowFileCurrRollback

      private volatile Integer flowFileCurrRollback
    • flowFileCurrYield

      private volatile Integer flowFileCurrYield
    • flowFileCurrPenalty

      private volatile Integer flowFileCurrPenalty
    • flowFileCurrException

      private volatile Integer flowFileCurrException
    • noFlowFileCurrSkip

      private volatile Integer noFlowFileCurrSkip
    • noFlowFileCurrException

      private volatile Integer noFlowFileCurrException
    • noFlowFileCurrYield

      private volatile Integer noFlowFileCurrYield
    • flowFileExceptionClass

      private volatile Class<? extends RuntimeException> flowFileExceptionClass
    • noFlowFileExceptionClass

      private volatile Class<? extends RuntimeException> noFlowFileExceptionClass
    • curr_ff_resp

      private final DebugFlow.FlowFileResponse curr_ff_resp
    • curr_noff_resp

      private final DebugFlow.NoFlowFileResponse curr_noff_resp
  • Constructor Details

    • DebugFlow

      public DebugFlow()
  • Method Details

    • getRelationships

      public Set<org.apache.nifi.processor.Relationship> getRelationships()
      Specified by:
      getRelationships in interface org.apache.nifi.processor.Processor
      Overrides:
      getRelationships in class org.apache.nifi.processor.AbstractSessionFactoryProcessor
    • getSupportedPropertyDescriptors

      protected List<org.apache.nifi.components.PropertyDescriptor> getSupportedPropertyDescriptors()
      Overrides:
      getSupportedPropertyDescriptors in class org.apache.nifi.components.AbstractConfigurableComponent
    • onScheduled

      @OnScheduled public void onScheduled(org.apache.nifi.processor.ProcessContext context) throws ClassNotFoundException, InterruptedException
      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:
      customValidate in class org.apache.nifi.components.AbstractConfigurableComponent
    • sleep

      private void sleep(long millis, boolean ignoreInterrupts) throws InterruptedException
      Throws:
      InterruptedException
    • fail

      private void fail(boolean isAppropriate, Class<?> annotationClass)
    • 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:
      onTrigger in class org.apache.nifi.processor.AbstractProcessor
      Throws:
      org.apache.nifi.processor.exception.ProcessException