@SupportsBatching @InputRequirement(value=INPUT_REQUIRED) @Tags(value={"remote","copy","egress","put","ftp","archive","files"}) @CapabilityDescription(value="Sends FlowFiles to an FTP Server") @SeeAlso(value=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>
Modifier and Type | Field and Description |
---|---|
private static Pattern |
POST_SEND_CMD_PATTERN |
private AtomicReference<List<PropertyDescriptor>> |
postSendDescriptorRef |
private static Pattern |
PRE_SEND_CMD_PATTERN |
private AtomicReference<List<PropertyDescriptor>> |
preSendDescriptorRef |
private List<PropertyDescriptor> |
properties |
REL_FAILURE, REL_REJECT, REL_SUCCESS
Constructor and Description |
---|
PutFTP() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterPut(FlowFile flowFile,
ProcessContext context,
FTPTransfer transfer) |
protected void |
beforePut(FlowFile flowFile,
ProcessContext context,
FTPTransfer transfer) |
protected Collection<ValidationResult> |
customValidate(ValidationContext validationContext) |
void |
determinePrePostSendProperties(ProcessContext context) |
private List<String> |
getCommands(List<PropertyDescriptor> descriptors,
ProcessContext context,
FlowFile flowFile) |
protected FTPTransfer |
getFileTransfer(ProcessContext context) |
protected PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ProcessorInitializationContext context) |
getRelationships, onTrigger
onTrigger
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue
equals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
private static final Pattern PRE_SEND_CMD_PATTERN
private static final Pattern POST_SEND_CMD_PATTERN
private final AtomicReference<List<PropertyDescriptor>> preSendDescriptorRef
private final AtomicReference<List<PropertyDescriptor>> postSendDescriptorRef
private List<PropertyDescriptor> properties
protected void init(ProcessorInitializationContext context)
init
in class AbstractSessionFactoryProcessor
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
protected void beforePut(FlowFile flowFile, ProcessContext context, FTPTransfer transfer) throws IOException
beforePut
in class PutFileTransfer<FTPTransfer>
IOException
protected void afterPut(FlowFile flowFile, ProcessContext context, FTPTransfer transfer) throws IOException
afterPut
in class PutFileTransfer<FTPTransfer>
IOException
protected FTPTransfer getFileTransfer(ProcessContext context)
getFileTransfer
in class PutFileTransfer<FTPTransfer>
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
getSupportedDynamicPropertyDescriptor
in class AbstractConfigurableComponent
@OnScheduled public void determinePrePostSendProperties(ProcessContext context)
private List<String> getCommands(List<PropertyDescriptor> descriptors, ProcessContext context, FlowFile flowFile)
protected Collection<ValidationResult> customValidate(ValidationContext validationContext)
customValidate
in class AbstractConfigurableComponent
Copyright © 2020 Apache NiFi Project. All rights reserved.