Class FetchSmb

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.smb.FetchSmb
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.processor.Processor

@InputRequirement(INPUT_REQUIRED) @Tags({"samba","smb","cifs","files","fetch"}) @CapabilityDescription("Fetches files from a SMB Share. Designed to be used in tandem with ListSmb.") @SeeAlso({ListSmb.class,PutSmbFile.class,GetSmbFile.class}) @WritesAttribute(attribute="error.code",description="The error code returned by SMB when the fetch of a file fails.") @WritesAttribute(attribute="error.message",description="The error message returned by SMB when the fetch of a file fails.") public class FetchSmb extends org.apache.nifi.processor.AbstractProcessor
  • Field Summary

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private String
     
    Set<org.apache.nifi.processor.Relationship>
     
    protected List<org.apache.nifi.components.PropertyDescriptor>
     
    void
    onTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session)
     
    private void
    performCompletionStrategy(org.apache.nifi.processor.ProcessContext context, Map<String,String> attributes)
     

    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, 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

    • ERROR_CODE_ATTRIBUTE

      public static final String ERROR_CODE_ATTRIBUTE
      See Also:
    • ERROR_MESSAGE_ATTRIBUTE

      public static final String ERROR_MESSAGE_ATTRIBUTE
      See Also:
    • REMOTE_FILE

      public static final org.apache.nifi.components.PropertyDescriptor REMOTE_FILE
    • COMPLETION_STRATEGY

      public static final org.apache.nifi.components.PropertyDescriptor COMPLETION_STRATEGY
    • DESTINATION_DIRECTORY

      public static final org.apache.nifi.components.PropertyDescriptor DESTINATION_DIRECTORY
    • CREATE_DESTINATION_DIRECTORY

      public static final org.apache.nifi.components.PropertyDescriptor CREATE_DESTINATION_DIRECTORY
    • SMB_CLIENT_PROVIDER_SERVICE

      public static final org.apache.nifi.components.PropertyDescriptor SMB_CLIENT_PROVIDER_SERVICE
    • REL_SUCCESS

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

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

      public static final Set<org.apache.nifi.processor.Relationship> RELATIONSHIPS
    • PROPERTY_DESCRIPTORS

      private static final List<org.apache.nifi.components.PropertyDescriptor> PROPERTY_DESCRIPTORS
    • UNCATEGORIZED_ERROR

      public static final String UNCATEGORIZED_ERROR
      See Also:
  • Constructor Details

    • FetchSmb

      public FetchSmb()
  • 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
    • 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
    • getErrorCode

      private String getErrorCode(Exception exception)
    • performCompletionStrategy

      private void performCompletionStrategy(org.apache.nifi.processor.ProcessContext context, Map<String,String> attributes)