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:
ConfigurableComponent,Processor
Base class for PutFTP invalid input: '&' PutSFTP
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic inner class to hold conflict data -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Relationshipstatic final Relationshipstatic final Relationshipprivate final Set<Relationship> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterPut(FlowFile flowFile, ProcessContext context, T transfer) protected voidbeforePut(FlowFile flowFile, ProcessContext context, T transfer) protected abstract TgetFileTransfer(ProcessContext context) private PutFileTransfer.ConflictResultidentifyAndResolveConflictFile(String conflictResolutionType, T transfer, String path, FlowFile flowFile, boolean rejectZeroByteFiles, ComponentLog logger) voidonTrigger(ProcessContext context, ProcessSession session) 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
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, getSupportedPropertyDescriptors, 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
-
REL_SUCCESS
-
REL_FAILURE
-
REL_REJECT
-
relationships
-
-
Constructor Details
-
PutFileTransfer
public PutFileTransfer()
-
-
Method Details
-
getRelationships
- Specified by:
getRelationshipsin interfaceProcessor- Overrides:
getRelationshipsin classAbstractSessionFactoryProcessor
-
getFileTransfer
-
beforePut
- Throws:
IOException
-
afterPut
- Throws:
IOException
-
onTrigger
- Specified by:
onTriggerin classAbstractProcessor
-
identifyAndResolveConflictFile
private PutFileTransfer.ConflictResult identifyAndResolveConflictFile(String conflictResolutionType, T transfer, String path, FlowFile flowFile, boolean rejectZeroByteFiles, ComponentLog logger) throws IOException - Throws:
IOException
-