Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Transactional behavior covers the situation where a group of files can only be processed when all the files in the a group have been successfully transferred.

...

Feature Description

Transactional behavior specifies whether a transfer should be processed within a single transaction - i.e. whether all objects the objects specified are to be successfully transferred or none at all.

...

The remove_files parameter, which causes files on the source to be removed after successful transfer, will only be implemented executed after all the files have been successfully transferred. Otherwise no source files will be removed.

...

YADE JITL Job Example

The following example shows the use of the Transactional Behavior transactional parameter together with Atomic Transfer in the JobScheduler JADE YADE JITL job.

Code Block
languagehtml/xml
<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 = "transactional" value = "true" />       
       <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>