You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Diagram

Unable to render 'XSD Viewer' macro

Could not find the given XSD (xsd_macro73e81afe4b2aa6e1c9e6cf4255d014d4.png) on page (JADE XSD Schema Reference - Operation Copy)

Elements

Copy
References Notes

A Copy operation performs the transfer of files between a source and a target host.

Two settings groups are available to specify a Copy operation:

  • CopySource: specifies the source of a file transfer operation.
  • CopyTarget: specifies the file transfer target.
Element Type Required Description
CopySource
  • Occurrence: 1
Required
References Notes

This parameter specifies the source of a Copy operation.

The following frequently used settings groups are available:

CopySourceFragmentRef [ReadableFragmentRefType]
  • Occurrence: 1
Required
References Notes

This element references a readable fragment that is used to copy files in a Copy operation.

Any number of reusable Fragments elements can be configured and are distinguished by YADE based on their name attribute.

A subsequent fragment reference element points to the fragment that is used as source in the Copy operation.

AlternativeCopySourceFragmentRef
  • Occurrence: 0..unbounded
Optional
References Notes

Alternative fragements can be specified as a replacement for existing file transfer fragments in case that a connection cannot be established with those fragments.

Alternative fragments can be specified from a range of protocol fragments for use with the source of a file transfer operation without modifying files.

For each fragment type depending on the file transfer protocol in use an alternative fragment type is available.

SourceFileOptions
  • Occurrence: 1
Required
References Notes

These options apply to the handling of files on a source server. They specify e.g. the Selection of files for Copy and Move operations.

CopyTarget
  • Occurrence: 1
Required
References Notes

This parameter specifies the target of a Copy operation.

The following frequently used settings groups are available:

CopyTargetFragmentRef [WriteableFragmentRefType]
  • Occurrence: 1
Required
References Notes

This element references a writeable fragment that is used to copy files in a Copy operation.

Any number of reusable Fragments elements can be configured and are distinguished by YADE based on their name attribute.

A subsequent fragment reference element points to the fragment that is used as target in the Copy operation.

AlternativeCopyTargetFragmentRef
  • Occurrence: 0..unbounded
Optional
References Notes

Alternative fragements can be specified as a replacement for existing file transfer fragments in case that a connection cannot be established with those fragments.

Alternative fragments can be specified from a range of protocol fragments for use with the source or target of a file transfer operation that required modifying files.

For each fragment type depending on the file transfer protocol in use an alternative fragment type is available.

Directory string
  • Min: 1
  • Whitespace: preserve
  • Occurrence: 1
Required
References Notes

This parameter is used to specify a directory on one of the involved servers. Directories can be adressed using a folder structure, e.g. /folder1/folder2.

For Windows systems when used with the LocalSource parameter then a Windows path including a drive letter can be specified. For all server systems the standard syntax using can be used which includes forward slashes to separate folder names.

The directory can be set absolute or relative to the working directory, where the working directory depends on the server configuration. If for example a user "test" connects to an SFTP server then this user might have /home/test/ as a working directory. This applies to servers that use the home directory as the working directory. In this case you can use relative and absolute adressing as in

  • data
  • /home/test/data
as values for the Directory parameter.
TargetFileOptions
  • Occurrence: 0..1
Optional
References Notes

These options apply to files on a target server. They specify e.g. the Atomicity of a file transfer for Copy and Move operations.

TransferOptions
  • Occurrence: 0..1
Optional
References Notes

Transfer options specify the optional behavior of file transfer, e.g. the transactional behavior.

BufferSize int
  • Pattern: [\-+]?[0-9]+
  • Whitespace: collapse
  • Occurrence: 0..1
Optional
References Notes

The maximum size of a data block is defined with this option.

Transactional boolean
  • Whitespace: collapse
  • Occurrence: 0..1
Optional
References Notes

This parameter specifies whether a transfer should be processed within a single transaction, i.e. either all objects are successfully transferred or none.

Should an error occur during a transfer operation then all transfers will be rolled back.

When specifying the value true then the following applies:

  • The AtomicSuffix parameter and AtomicPrefix parameter are used that cause target files to be created with a suffix such as "~" (default) and that causes the respective files to be renamed to their target file name after the transfer of all files has been successfully completed.
  • If at least one file out of a set of files cannot be transferred successfully then no files will be renamed, instead the temporarily created files are removed from the target system.
  • The parameter remove_files that causes files to be removed after successful transfer will be effective only after all files have been successfully transferred. Otherwise no files will be removed.
RetryOnConnectionError
  • Occurrence: 0..1
Optional
References Notes

To control reconnect behavior, the YADE has two options:

  • RetryCountMax - number of reconnection attempts (for each single file transfer) if there is a connection failure
  • RetryInterval - the wait interval between attempts

tbd

  • No labels