Diagram
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. A file Selection includes specifying one of This parameter specifies the Selection of files from a source by the following settings: The specified files are expected to be available from the source for transfer by YADE. 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: In case of a runtime path (file to process for a file-order in a file_order_source job chain): 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 This parameter specifies wether files from subdirectories should be included recursively. Recursion is effective exclusively if files are found in a directory. This parameter specifies the Selection of files from a source by the following settings: All files with names that correspond to the regular expression are added to a results list and are transferred by YADE. 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. 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 This parameter specifies a regular expression that matches the path to directories to be excluded when recursively traversing a Source directory. This parameter specifies wether files from subdirectories should be included recursively. Recursion is effective exclusively if files are found in a directory. This parameter specifies the Selection of files from a source by the following settings: The specified files are expected to be available from the source for transfer by YADE. 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: 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 This parameter specifies wether files from subdirectories should be included recursively. Recursion is effective exclusively if files are found in a directory. 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. The interval in seconds for checking the steady state of incoming files. The number of tries to check the steady state of incoming files. 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 are options that specify the behavior with specific file characteristics: This parameter specifies whether an error should be raised if no files can be found for transfer. 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. This parameter specifies whether zero byte files should be transferred and processed by subsequent commands. The following settings are available: Notes Polling is the YADE capability to wait for incoming files. This parameter specifies the time in seconds that will be waited before a new poll for files is carried out. This parameter specifies the total length of time in minutes that a file will be polled for. 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. 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. 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". This parameter specifies YADE to act as a polling server. This setting should be "false" if YADE is executed by JobScheduler as JobScheduler itself has mechanisms to start jobs repeatedly. This parameter specifies how long the YADE polling server should run. It is required that the parameter PollingServer is "true". 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. 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. Check number of expected hits in result-list. Number of expected hits in result-list. 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 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: Example: This parameter is used to specify the processing if 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". 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. 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. 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.
SourceFileOptions
Notes
Element
Type
Required
Description
Selection
Required
FilePathSelection
Required
FilePath
string
Required
Directory
string
Optional
as values for the Directory parameter.
Recursive
boolean
Optional
Notes
FileSpecSelection
Required
FileSpec
string
Required
Directory
string
Optional
as values for the Directory parameter.
ExcludedDirectories
string
Optional
Notes
Recursive
boolean
Optional
Notes
FileListSelection
Required
FileList
string
Required
In case of a relative path...
Directory
string
Optional
as values for the Directory parameter.
Recursive
boolean
Optional
Notes
CheckSteadyState
Optional
Notes
CheckSteadyStateInterval
int
Optional
Notes
CheckSteadyStateCount
int
Optional
Notes
CheckSteadyStateErrorState
string
Optional
Notes
Directives
Optional
Notes
DisableErrorOnNoFilesFound
boolean
Optional
Notes
TransferZeroByteFiles
string
Optional
Notes
Polling
Optional
PollInterval
int
Optional
Notes
PollTimeout
int
Optional
Notes
MinFiles
int
Optional
Notes
WaitForSourceFolder
boolean
Optional
Notes
PollErrorState
string
Optional
Notes
PollingServer
boolean
Optional
Notes
PollingServerDuration
Optional
Notes
Supported formats:
PollForever
boolean
Optional
Notes
ResultSet
Optional
ResultSetFile
string
Optional
Notes
CheckResultSetCount
Optional
ExpectedResultSetCount
int
Required
Notes
RaiseErrorIfResultSetIs
string
Required
Notes
EmptyResultSetState
string
Optional
Notes
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.
MaxFiles
int
Optional
CheckIntegrityHash
Optional
Notes
HashAlgorithm
string
Optional
Notes
Selection
Polling