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

Compare with Current View Page History

« Previous Version 7 Next »

Diagram

Unable to render 'XSD Viewer' macro

Could not find the given XSD (xsd_macro1bc754308af313c7792e2dff8a60edc0.png) on page (JADE Parameter Reference - SourceFileOptions)

Elements

SourceFileOptions
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.

Element Type Required Description
Selection
  • Occurrence: 1
Required
References Notes

A file Selection includes specifying one of

  • FilePathSelection: an absolute path to a file or a relative path used with a Directory
  • FileSpecSelection: a regular expression specifying a pattern for file names that are looked up in a Directory
  • FileListSelection: a list of files from a Directory
FilePathSelection
  • Occurrence: 1
Required

This parameter specifies the Selection of files from a source by the following settings:

  • FilePath: one or a number of file names that can be specified with an absolute or relative path.
  • Directory: a folder to which the file selection is applied if no absolute path has been used for the FilePath parameter.

The specified files are expected to be available from the source for transfer by YADE.

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

This parameter is used to specify an individual file or a number of files for processing. It is an alternative to the FileSpecSelection and FileListSelection.

More than one file can be specified by using a ";" between the file names. All files will be processed in the order in which they are defined in this parameter.

This parameter accepts absolute, relative and runtime paths of files that are to be processed.

In case of a relative path:

  • if the parameter Directory is specified, the path of each specified file is set relative to that directory.
  • otherwise the path is relative to the server's working directory, where the working directory depends on the server configuration.

In case of a runtime path (file to process for a file-order in a file_order_source job chain):

  • the value must be set to ${scheduler_file_path}
Directory string
  • Min: 1
  • Whitespace: preserve
  • Occurrence: 0..1
Optional
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.
Recursive boolean
  • Whitespace: collapse
  • Occurrence: 0..1
Optional
References Notes

This parameter specifies wether files from subdirectories should be included recursively. Recursion is effective exclusively if files are found in a directory.

  • FileSpecSelection
  • FilePathSelection/FileListSelection
    • YADE-600. Availability starting with 1.13.18
    • Specifies how the files should be transferred: flat in one Target folder or by creating the same sub-directories in the target system as from the source system.
FileSpecSelection
  • Occurrence: 1
Required

This parameter specifies the Selection of files from a source by the following settings:

  • FileSpec: a regular expression to select files.
  • Directory: a folder to which the file selection is applied.

All files with names that correspond to the regular expression are added to a results list and are transferred by YADE.

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

This parameter specifies a regular expression, which is used to select files from a Directory .

All files with names that correspond to the regular expression are added to a results list and are transferred by YADE.

This parameter cannot be used with the HTTPFragment or HTTPSFragment in any file transfer operation as the respective protocols would not support to select files based on wildcards.

Directory string
  • Min: 1
  • Whitespace: preserve
  • Occurrence: 0..1
Optional
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.
ExcludedDirectories string
  • Min: 1
  • Whitespace: preserve
  • Occurrence: 0..1
Optional
References Notes

This parameter specifies a regular expression that matches the path to directories to be excluded when recursively traversing a Source directory.

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

This parameter specifies wether files from subdirectories should be included recursively. Recursion is effective exclusively if files are found in a directory.

  • FileSpecSelection
  • FilePathSelection/FileListSelection
    • YADE-600. Availability starting with 1.13.18
    • Specifies how the files should be transferred: flat in one Target folder or by creating the same sub-directories in the target system as from the source system.
FileListSelection
  • Occurrence: 1
Required

This parameter specifies the Selection of files from a source by the following settings:

  • FileList: specifies a file that contains records with file names in each line. This file is expected to be in reach of the YADE Cllient.
  • Directory: a folder to which the file selection is applied.

The specified files are expected to be available from the source for transfer by YADE.

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

This parameter is used to specify a number of files for processing. It is an alternative to the FileSpecSelection and FilePathSelection.

This parameter specifies a file that contains records with file names in each line. The files can be specified with absolute or relative paths. Each record in this file contains the name of a file which is to be processed. All files in the file list will be processed in the sequence they appear in the file. If a file in the list does not exist then the processing will be aborted.

Future behaviour:
In case of a relative path...

  • if the parameter Directory is specified, the path of each specified file is relative to that directory.
  • otherwise the path is relative to the servers working directory, where the working directory depends on the server configuration.
Directory string
  • Min: 1
  • Whitespace: preserve
  • Occurrence: 0..1
Optional
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.
Recursive boolean
  • Whitespace: collapse
  • Occurrence: 0..1
Optional
References Notes

This parameter specifies wether files from subdirectories should be included recursively. Recursion is effective exclusively if files are found in a directory.

  • FileSpecSelection
  • FilePathSelection/FileListSelection
    • YADE-600. Availability starting with 1.13.18
    • Specifies how the files should be transferred: flat in one Target folder or by creating the same sub-directories in the target system as from the source system.
CheckSteadyState
  • Occurrence: 0..1
Optional
References Notes

In some file transfer scenarios the recipient of a file does not know when the sender creates the file. In case of (very) large files the recipient may try to read the file before the sender has finished writing it. This can result in the recipient retrieving an incomplete file.

Including the CheckSteadyState parameter ensures that the file is checked at its reception point for completeness before starting the transfer.

Including the CheckSteadyState parameter ensures that the file is checked at its reception point for completeness before starting the transfer.

If the check of the steady state of one incoming file did not succeed successfully then no file will be transferred.

Note that this is not a very reliable approach as the recipient checks the date of last modification and the size of the file. If neither changes during a specified a period of time then the file is assumed to be complete. However, if transmission is terminated without the file being completely written, the network goes down or the processing speed of the file is slow, then the receiver will get a corrupted file.

The shorter the check interval is chosen the more likely it may happen that a file is detected as steady, although this was not yet finished writing.

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

The interval in seconds for checking the steady state of incoming files.

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

The number of tries to check the steady state of incoming files.

CheckSteadyStateErrorState string
  • Min: 1
  • Whitespace: preserve
  • Occurrence: 0..1
Optional
References Notes

The next state in a job chain that is used if the check of the steady state of incoming files did not succeed successfully.

This parameter is only available if YADE runs as a JobScheduler job.

Directives
  • Occurrence: 0..1
Optional
References Notes

Directives are options that specify the behavior with specific file characteristics:

  • DisableErrorOnNoFilesFound: do not raise an error if no files are found on the source server
  • TransferZeroByteFiles: specify whether zero byte files should be transferred and processed by subsequent commands
DisableErrorOnNoFilesFound boolean
  • Whitespace: collapse
  • Occurrence: 0..1
Optional
References Notes

This parameter specifies whether an error should be raised if no files can be found for transfer.

  • By default an error will be reported if no files are found on the source system which corresponds to the value "false".
  • No errors will be reported if no files are found and this parameter is set to "true".

The number of files to transfer is determined by the FileSpec, FilePath or FileList parameters.

This parameter does not affect the DisableOverwriteFiles parameter if no files are found that can be overwritten.

TransferZeroByteFiles string
  • Whitespace: preserve
  • Enumeration:
    • true
    • false
    • strict
    • relaxed
  • Occurrence: 0..1
Optional
References Notes

This parameter specifies whether zero byte files should be transferred and processed by subsequent commands.

The following settings are available:

  • "true": files with zero byte size are transferred (default).
  • "false": files with zero byte size are transferred if at least one of the selected files is more than zero byte in size.
  • "strict": files with zero byte size will not be transferred. An error will be raised if any zero byte file is found.
  • "relaxed": files with zero byte size will not be transferred. However, no error will be raised if this results in no files being transferred.

Notes

  • Note that the Remove operation has unrestricted validity.
    • Files with zero byte size will be removed regardless of whether or not they have been transferred.
Polling
  • Occurrence: 0..1
Optional
References Notes

Polling is the YADE capability to wait for incoming files.

  • If a file is found then polling is completed and the file transfer starts.
  • If no file is found then YADE would wait for a configurable PollInterval and then repeat the check for incoming files.
  • Having exceeded the PollTimeout YADE will not repeat checks for incoming files but will fail with the respective exception.
PollInterval int
  • Pattern: [\-+]?[0-9]+
  • Whitespace: collapse
  • Occurrence: 0..1
Optional
References Notes

This parameter specifies the time in seconds that will be waited before a new poll for files is carried out.

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

This parameter specifies the total length of time in minutes that a file will be polled for.

  • If the value of this parameter is zero then polling will not be carried out.
  • If a file becomes available within the time specified then it will be transferred, otherwise an error will be raised.
  • Polling will be stopped once one (or more) file(s) have been detected.
MinFiles int
  • Pattern: [\-+]?[0-9]+
  • Whitespace: collapse
  • Occurrence: 0..1
Optional
References Notes

This parameter specifies the minimum number of files that have to be found during the polling period in order to cause the transfer to start. This parameter becomes effective with the PollTimeout parameter.

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

This parameter determines the behavior of the polling when the source folder doesn't exist. If the value is "true" and the source folder doesn't exist then the polling continues otherwise it raise an error.

PollErrorState string
  • Min: 1
  • Whitespace: preserve
  • Occurrence: 0..1
Optional
References Notes

When YADE runs as a job with JobScheduler and is used for polling then this parameter specifies the node of the current job chain that should be executed after the current YADE job if the timeout as specified with the PollTimeout parameter is exceeded without finding a file.

If no state is specified then an error will be raised if no files are found after timeout.

It is required that the parameter PollingServer is "false".

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

This parameter specifies YADE to act as a polling server.

  • If this value "false" then the polling server stops after the first polling trial. The first polling trial ends if either the PollTimeout is reached or some files (at least MinFiles) are found.
  • If this value "true" then the polling server starts polling trials endlessly (see PollForever) or until PollingServerDuration is reached. If some files are found inside a polling trial then these files are transferred before the next polling trial is started.

This setting should be "false" if YADE is executed by JobScheduler as JobScheduler itself has mechanisms to start jobs repeatedly.

PollingServerDuration
  • Occurrence: 0..1
Optional
References Notes

This parameter specifies how long the YADE polling server should run.

It is required that the parameter PollingServer is "true".


Supported formats:

  • s(n) - seconds, e.g. 30,180...
  • m(n):s(n) - minutes:seconds, e.g. 10:30, 123:456 ...
  • h(n):m(n):s(n) - hours:minutes:seconds, e.g. 12:30:30, 123456:7:8 ...
PollForever boolean
  • Whitespace: collapse
  • Occurrence: 0..1
Optional
References Notes

This parameter specifies an unbounded duration for Polling and would cause YADE not to terminate after processing of incoming files.

This parameter is an alternative to the PollingServerDuration that specifies a limited duration.

It is required that the parameter PollingServer is "true".

This setting should not be used if YADE is executed by JobScheduler as JobScheduler itself has mechanisms to start jobs repeatedly.

ResultSet
  • Occurrence: 0..1
Optional
References Notes

This handles the result set of a Selection of files from a source host. The result set can be written into a file or checked against an expectation.

ResultSetFile string
  • Min: 1
  • Whitespace: preserve
  • Occurrence: 0..1
Optional
References Notes

If the value of this parameter specifies a valid filename then the result set of a Selection of files from a source host will be written to this file.

The result set file is located on the host that runs the YADE Client.

CheckResultSetCount
  • Occurrence: 0..1
Optional

Check number of expected hits in result-list.

ExpectedResultSetCount int
  • Pattern: [\-+]?[0-9]+
  • Whitespace: collapse
  • Occurrence: 1
Required
References Notes

Number of expected hits in result-list.

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

This parameter has only an effect if the YADE Client is operated with JobScheduler.

This parameter specified a comparison operator. With this parameter YADE can be caused to raise an error if the number of files that are subject to a file transfer operation does not correspond to the expected number of files.

Use of this parameter requires

  • the number of expected files to be specified with the ExpectedSizeOfResultSet parameter

At run-time the specified value is compared to the effective number of files. In case of a missing match an error is raised.

Possible values of this parameter are:

  • for equal
    • =
    • ==
    • eq
    • equal
  • for not equal
    • !=
    • <>
    • ne
    • not equal
  • for less than
    • <
    • lt
    • less than
  • for less or equal
    • <=
    • le
    • less or equal
  • for greater or equal
    • >=
    • ge
    • greater or equal
  • for greater than
    • >
    • gt
    • greater than

Example:

  • Assuming that the parameter RaiseErrorIfResultSetIs is set "=" and the parameter ExpectedSizeOfResultSet is set to the value "1".
  • If the number of files does not match "1" then an error will raised.
EmptyResultSetState string
  • Min: 1
  • Whitespace: preserve
  • Occurrence: 0..1
Optional
References Notes

This parameter is used to specify the processing if

  • no files are found that are subject to a file transfer operation and
  • the YADE Client is operated in job chain with JobScheduler.
For that situation this parameter specifies the a job chain node for which processing of the job chain should be continued. The job chain node is identified by its state which is the value of this parameter.

The respective job chain node is expected to handle the situation of missing files, e.g. to repeat processing.

The respective job chain node is only reached if no errors occurred. In particular, please note that the parameter DisableErrorOnNoFilesFound has to be "true".

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

This parameter specifies the maximum number of files that are considered for transfer. If additional files were available then they will be ignored.

Note that it is not possible to specify which files will be ignored should the value set for this parameter be exceeded. It therefore only makes sense to use this parameter in particular situations such as when the contents of a directory will be repeatedly polled.

CheckIntegrityHash
  • Occurrence: 0..1
Optional
References Notes

This parameter makes use of a checksum file that is available with the source of a file transfer. The name of the checksum file is assumed to be the same as the source file with an additional extension .md5. During file transfer the contents of the checksum file is compared with the checksum that is calculated from the transfer of the file.

When used with a jump host then integrity checking applies to source and jump host, not to the target of the transfer.

With this element being used a checksum file is expected on the source system and the integrity hash for the target file is calculated and compared with the respective integrity hash of the source file. If the hashes are not equal then the file transfer will be rolled back. If the checksum file on the source system is missing then this will be reported as an information but will not affect the transfer of files.

HashAlgorithm string
  • Whitespace: preserve
  • Enumeration:
    • md5
  • Occurrence: 0..1
Optional
References Notes

This parameter specifies the algorithm that is used to create the checksum. At the time of writing md5 only is supported. If the parameters CheckIntegrityHash or CreateIntegrityHashFile are used then the integrity hash is calculated and compared according to this parameter.

Selection

Polling

 

  • No labels