Description
The FTPReceiver automatically sends files to an FTP Server.
In This Article
Receiver Parameters
The following parameters should be defined for the FTPReceiver. Items with an asterisk(*) are required.
- payloadFilesPath* - Defines the base location of the files to send
- payloadFilesSubDir - Defines the naming convention for subdirectories within the payloadFilesPath
- payloadFilesDescriptor - Defines the name of the descriptor of files to be sent from payloadFilesSubDir
- Examples:
- txt - Sends only files whose extension is txt
- xls - Sends only files whose extension is xls
- Examples:
- propertiesFilePath* - Defines the location of the configuration properties file
- propertiesSubDir - Defines the subdirectory within the propertiesFilePath where the properties file is located
- propertiesFileName* - Defines the file name of the configuration properties file
- logFileCount* - Defines the number of requests that are executed before logging a message to the console
- threadCount* - Defines the number of requests that may be sent simultaneously.
Configuration (Properties file)
The FTPReceiver must read from a configuration file, which contains the information to be able to connect to the FTP server.
The configuration file must contain the properties listed below. Items with an asterisk(*) are required.
- server* - The address of the FTP server
- username* - The username of the FTP client
- password* - The password of the FTP client
- port - The port number which the FTP server "listens" for client connections. If this is not set, the port will automatically be set to 21 (which is commonly used as the default port for FTP protocol)
Below is an example configuration file:
Example Test Runs
The following example test runs were performed on a machine with the following specifications:
- MacMini
- Mac OS Mojave
- 16GB RAM
- Intel Core I5 CPU
- 500GB SSD
Test data used in each test run met the following criteria:
- All test files were generated by GenRocket
- One thousand files were generated
- Each file having 3KB in size
For brevity, the example runs below show only the first 100 file transfers.
Test Run With 1 Thread (40m:55s)
Test Run With 2 Threads (1hr:6m:5s)
Test Run With 3 Threads (12m:16s)
Test Run With 5 Threads (7m:43s)
Test Run with 10 Threads (6m:30s)