|
If no metadata is specified at all for a file transfer, the targetPath provided for a file download and the sourcePath provided for a file upload are assumed to be relative (not absolute) to the eMessage agent installation. Updating the metadata for existing file transfer jobs is not supported.
|
|
The eMessage Connector accesses only one ThingWorx Platform at a time, and the file transfer jobs in the offline queue are not durable. If you are using PostgreSQL with your ThingWorx platform, active file transfer jobs are durable. If the setup of a ThingWorx environment includes two ThingWorx Platform nodes that use PostgreSQL (one active and one standby), client connections can be redirected to the secondary node if the first one fails. When an active job is persisted, its metadata is also persisted.
|
|
ThingWorx Platform does not support absolute paths for file uploads.
|
Metadata Field
|
Options
|
Example (JSON Format)
|
---|---|---|
upload.compressionType
|
tar-gzip — Default Value. Tells the agent to compress the file(s) using the tar-gzip utility.
none — Tells the agent NOT to compress the file(s) to be uploaded.
NOTE: The eMessage agents use only tar.gzip to compress and extract files.
|
{
"upload": { "compressionType": "tar-gzip" } } |
upload.deleteAfterUpload
|
true — Tells the agent to delete the file that it uploaded upon success.
false — Default Value. Tells the agent to keep the file on the agent device.
|
{
"upload": { "deleteAfterUpload": true } } |
download.overwriteExisting
|
true — Default Value. Tells the agent to overwrite any existing file(s).
false — Tells the agent not to overwrite any existing file(s). When this option is specified, the Axeda agent copies the existing file(s) to a directory called axedabackup and adds the newly downloaded file to the directory specified as the target/destination for the download.
|
{
"download": { "overwriteExisting": false } } |
download.deviceRelativePath
|
Keep in mind that this field applies only to the agent side of the file transfer. It is a boolean, defined as follows:
• true — Default Value. Indicates that the target file path is relative to the home directory of the agent. If this field is not set, the path is treated as relative.
• false — The target file path is absolute, as long as it contains a forward slash (Linux) or drive letter (Windows) at the beginning. For example, /connector/uploads. If this forward slash is omitted, the path is treated as relative.
.
|
{
"download": { "deviceRelativePath": false } } |
download.compressionType
|
tar-gzip — Tells the agent that the file(s) is a tar-gzip archive. The agent extracts the file(s) from such an archive upon successful download.
none — Default Value. Tells the agent that the file is NOT compressed.
NOTE: The eMessage agents use only tar.gzip to compress and extract files.
|
{
"download": { "compressionType": "tar-gzip" } } |
download.executeAfterDownload
|
true — Tells the agent to try to run the downloaded file.
false — Default Value. The agent does not try to run the downloaded file.
|
{
"download": { "executeAfterDownload": true } |
download.restartAfterDownload
|
true — Tells the agent to restart (soft) upon successful download.
false — Default Value. The agent does not restart once the download is complete.
|
{
"download": { "restartAfterDownload": true } |