Skip to end of metadata
Go to start of metadata

Atomic Transfer

YADE has many features to simplify day to day file transfer requirements. One of YADE's feature is Atomic Transfer.

Scenario

  • In some cases on a target server incoming files are automatically detected while being transferred by YADE
    • either by applications that monitor directories for incoming files
    • or by FTP, SFTP server daemons.
  • In case of large files the data transfer could take some seconds and the directory watchers would detect the file as soon as some initial bytes are written on the target server.

Solution

To avoid any partially transferred file being picked up by the directory watchers YADE has a built-in feature called atomic transfer.

  • YADE has two parameters atomic_prefix and atomic_suffix to configure atomic transfer. 
  • As the name suggest, during file transfer YADE will create a temporary file on target server with atomic_prefix and atomic_suffix in the filename, thus make it virtually hidden for the directory watchers. 
  • As soon as file transfer has completed without error, then YADE renames the file to its original name. In case of any error partially transferred files will be deleted from the target server.

To configure atomic transfer either the parameters 

  • atomic_prefix
  • atomic_suffix
  • or both can be used.

The user can apply any character or word as prefix/suffix as long as a directory watcher would not recognize the prefix/suffix being a valid part of the expected file name.

YADE JITL Job Example