@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 |
static PropertyDescriptor |
REMOTE_PATH |
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, onTriggeronTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueequals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate 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
public static final PropertyDescriptor REMOTE_PATH
protected void init(ProcessorInitializationContext context)
init in class AbstractSessionFactoryProcessorprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentprotected void beforePut(FlowFile flowFile, ProcessContext context, FTPTransfer transfer) throws IOException
beforePut in class PutFileTransfer<FTPTransfer>IOExceptionprotected void afterPut(FlowFile flowFile, ProcessContext context, FTPTransfer transfer) throws IOException
afterPut in class PutFileTransfer<FTPTransfer>IOExceptionprotected 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 AbstractConfigurableComponentCopyright © 2023 Apache NiFi Project. All rights reserved.