Class PutFileTransfer<T extends FileTransfer>

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processor.util.file.transfer.PutFileTransfer<T>
Type Parameters:
T - type of transfer
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.processor.Processor

public abstract class PutFileTransfer<T extends FileTransfer> extends org.apache.nifi.processor.AbstractProcessor
Base class for PutFTP invalid input: '&' PutSFTP
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static class 
    static inner class to hold conflict data
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.nifi.processor.Relationship
     
    static final org.apache.nifi.processor.Relationship
     
    static final org.apache.nifi.processor.Relationship
     
    private static final Set<org.apache.nifi.processor.Relationship>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    afterPut(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.processor.ProcessContext context, T transfer)
     
    protected void
    beforePut(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.processor.ProcessContext context, T transfer)
     
    protected abstract T
    getFileTransfer(org.apache.nifi.processor.ProcessContext context)
     
    Set<org.apache.nifi.processor.Relationship>
     
    identifyAndResolveConflictFile(String conflictResolutionType, T transfer, String path, org.apache.nifi.flowfile.FlowFile flowFile, boolean rejectZeroByteFiles, org.apache.nifi.logging.ComponentLog logger)
     
    void
    onTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session)
     

    Methods inherited from class org.apache.nifi.processor.AbstractProcessor

    onTrigger

    Methods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor

    getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue

    Methods inherited from class org.apache.nifi.components.AbstractConfigurableComponent

    customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, hashCode, onPropertyModified, validate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.nifi.components.ConfigurableComponent

    getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate

    Methods inherited from interface org.apache.nifi.processor.Processor

    isStateful, migrateProperties, migrateRelationships
  • Field Details

    • REL_SUCCESS

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

      public static final org.apache.nifi.processor.Relationship REL_FAILURE
    • REL_REJECT

      public static final org.apache.nifi.processor.Relationship REL_REJECT
    • RELATIONSHIPS

      private static final Set<org.apache.nifi.processor.Relationship> RELATIONSHIPS
  • Constructor Details

    • PutFileTransfer

      public PutFileTransfer()
  • 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
    • getFileTransfer

      protected abstract T getFileTransfer(org.apache.nifi.processor.ProcessContext context)
    • beforePut

      protected void beforePut(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.processor.ProcessContext context, T transfer) throws IOException
      Throws:
      IOException
    • afterPut

      protected void afterPut(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.processor.ProcessContext context, T transfer) throws IOException
      Throws:
      IOException
    • onTrigger

      public void onTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session)
      Specified by:
      onTrigger in class org.apache.nifi.processor.AbstractProcessor
    • identifyAndResolveConflictFile

      private PutFileTransfer.ConflictResult identifyAndResolveConflictFile(String conflictResolutionType, T transfer, String path, org.apache.nifi.flowfile.FlowFile flowFile, boolean rejectZeroByteFiles, org.apache.nifi.logging.ComponentLog logger) throws IOException
      Throws:
      IOException