Atomic Transfer

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

Scenario

Solution

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

To configure atomic transfer either the parameters 

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

<job
     title = "API Job for JobScheduler Advanced Data Exchange"
     order = "yes"  stop_on_error = "no" >

     <description>
       <include file = "jobs/JADE-Job.xml" />
     </description>
    
     <params>
       <param name = "atomic_prefix" value = "~" />
       <param name = "atomic_suffix" value = "~" />
       <param name = "file_spec"     value = "^report\.csv$" />
       <param name = "host"          value = "ftp.example.com" />
       <param name = "local_dir"     value = "." />
       <param name = "operation"     value = "copy" />
       <param name = "passive_mode"  value = "false" />
       <param name = "password"      value = "top-secret" />       
       <param name = "remote_dir"    value = "." />       
     </params>

     <script language   = "java"
             java_class = "sos.scheduler.jade.JadeJob" >
     </script>
 </job>