Class PutFTP
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<FTPTransfer>
org.apache.nifi.processors.standard.PutFTP
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.processor.Processor
@SupportsBatching
@InputRequirement(INPUT_REQUIRED)
@Tags({"remote","copy","egress","put","ftp","archive","files"})
@CapabilityDescription("Sends FlowFiles to an FTP Server")
@SeeAlso(GetFTP.class)
@DynamicProperty(name="pre.cmd._____",value="Not used",description="The command specified in the key will be executed before doing a put. You may add these optional properties to send any commands to the FTP server before the file is actually transferred (before the put command). This option is only available for the PutFTP processor, as only FTP has this functionality. This is essentially the same as sending quote commands to an FTP server from the command line. While this is the same as sending a quote command, it is very important that you leave off the .") @DynamicProperty(name="post.cmd._____",value="Not used",description="The command specified in the key will be executed after doing a put. You may add these optional properties to send any commands to the FTP server before the file is actually transferred (before the put command). This option is only available for the PutFTP processor, as only FTP has this functionality. This is essentially the same as sending quote commands to an FTP server from the command line. While this is the same as sending a quote command, it is very important that you leave off the .")
public class PutFTP
extends PutFileTransfer<FTPTransfer>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Patternprivate final AtomicReference<List<org.apache.nifi.components.PropertyDescriptor>> private static final Patternprivate final AtomicReference<List<org.apache.nifi.components.PropertyDescriptor>> private static final List<org.apache.nifi.components.PropertyDescriptor> static final org.apache.nifi.components.PropertyDescriptorFields inherited from class org.apache.nifi.processor.util.file.transfer.PutFileTransfer
REL_FAILURE, REL_REJECT, REL_SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterPut(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.processor.ProcessContext context, FTPTransfer transfer) protected voidbeforePut(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.processor.ProcessContext context, FTPTransfer transfer) protected Collection<org.apache.nifi.components.ValidationResult> customValidate(org.apache.nifi.components.ValidationContext validationContext) voiddeterminePrePostSendProperties(org.apache.nifi.processor.ProcessContext context) getCommands(List<org.apache.nifi.components.PropertyDescriptor> descriptors, org.apache.nifi.processor.ProcessContext context, org.apache.nifi.flowfile.FlowFile flowFile) protected FTPTransfergetFileTransfer(org.apache.nifi.processor.ProcessContext context) protected org.apache.nifi.components.PropertyDescriptorgetSupportedDynamicPropertyDescriptor(String propertyDescriptorName) protected List<org.apache.nifi.components.PropertyDescriptor> voidMethods inherited from class org.apache.nifi.processor.util.file.transfer.PutFileTransfer
getRelationships, onTriggerMethods 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, 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, migrateRelationships
-
Field Details
-
PRE_SEND_CMD_PATTERN
-
POST_SEND_CMD_PATTERN
-
preSendDescriptorRef
private final AtomicReference<List<org.apache.nifi.components.PropertyDescriptor>> preSendDescriptorRef -
postSendDescriptorRef
private final AtomicReference<List<org.apache.nifi.components.PropertyDescriptor>> postSendDescriptorRef -
REMOTE_PATH
public static final org.apache.nifi.components.PropertyDescriptor REMOTE_PATH -
PROPERTY_DESCRIPTORS
-
-
Constructor Details
-
PutFTP
public PutFTP()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classorg.apache.nifi.components.AbstractConfigurableComponent
-
migrateProperties
-
beforePut
protected void beforePut(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.processor.ProcessContext context, FTPTransfer transfer) throws IOException - Overrides:
beforePutin classPutFileTransfer<FTPTransfer>- Throws:
IOException
-
afterPut
protected void afterPut(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.processor.ProcessContext context, FTPTransfer transfer) throws IOException - Overrides:
afterPutin classPutFileTransfer<FTPTransfer>- Throws:
IOException
-
getFileTransfer
- Specified by:
getFileTransferin classPutFileTransfer<FTPTransfer>
-
getSupportedDynamicPropertyDescriptor
protected org.apache.nifi.components.PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) - Overrides:
getSupportedDynamicPropertyDescriptorin classorg.apache.nifi.components.AbstractConfigurableComponent
-
determinePrePostSendProperties
@OnScheduled public void determinePrePostSendProperties(org.apache.nifi.processor.ProcessContext context) -
getCommands
-
customValidate
protected Collection<org.apache.nifi.components.ValidationResult> customValidate(org.apache.nifi.components.ValidationContext validationContext) - Overrides:
customValidatein classorg.apache.nifi.components.AbstractConfigurableComponent
-