Skip to end of metadata
Go to start of metadata

Scope

  • YADE implements a Virtual File System that supports a number of data providers, e.g. SMB/CIFS protocol implementation by Samba JCifs, SFTP protocol implemented by JSch library.
  • Data providers can make use of individual Java properties, e.g. 
    • for SMB/CIFS to specify compatibility levels for authentication with NTLMv2 and newer
    • for SFTP to specify packet compression to zlib, compression level 9 or specific ciphers such as blowfish-cbc, aes128-ctr etc.
  • YADE allows to specify Java System Property files at a global level and individually per file transfer fragment.
    • YADE-400 - Consider Java property files for data provider Released
    • Java properties are applied as System Properties by YADE.
  • YADE allows to specify Java Application Property files as configuration files that are applied individually per file transfer fragment.
    • YADE-403 - Consider configuration files for data provider Released
    • Java properties are applied as Application Properties from configuration files. Such properties are specific for a data provider.

YADE Java System Property Files

YADE Configuration by System Property Files

The Java properties configured using the system_property_files options are global properties available to all protocol fragments. The system_property_files option can be assigned a semicolon separated list of property files. A property file can contain one or more properties as key value pairs.

Example

Sample System Properties

Following are two examples of such  system property files that contain global Java properties for a data provider. One system property file can also contain properties for multiple data providers. At run-time the YADE will automatically apply applicable properties to the respective data provider, e.g. SFTP properties to the JSch data provider and SMB properties to the JCifs data provider. 

  • sftp_system.properties

    System Propery File sftp_system.proprerties
  • smb_system.properties

    System Propery File smb_system.properties

Sample YADE Configuration

YADE Settings file with system_property_files yade_settings.ini  Expand source

Explanations

  • The YADE settings consist of the following types of sections:
    1. Globals section 
    2. Protocol Fragment sections
    3. Transfer Profile sections
  • In the sample yade_settings.ini file, under the globals section the system property files are configure as semicolon separated list of files by the option system_property_files.
  • The properties defined in the files sftp_system.properties and  smb_system.properties will be available to all protocol fragments.
  • The known_hosts and remote_exec system property will be available and applied to all the fragments using protocol SFTP,  e.g. to the protocol  fragments protocol_fragment_sftp@sftp-uk.sos and protocol_fragment_sftp@sftp-japan.sos.

YADE Java Application Property Files

YADE Confguration by Application Property Files

The protocol fragment specific Java properties can be configured using the configuration_files option at protocol fragment level. The configuration_files option can be assigned a semicolon separated list of property files. A property file can contain one or more properties as key value pairs.

Example

Sample Application Properties for Data Provider

  • SFTP packet compression configuration sftp_zlip_compression.properties
  • SFTP Cipher configuration sftp_cipher_aes128-ctr.properties

Sample YADE Configuration

YADE Settings with system_property_files and configuration_files yade_settings.ini  Expand source

Explanations

  • The global system property file will be applicable as explained in the previous chapter on YADE Java System Property Files. 
  • In the YADE Settings sample two configuration files are created, both of them include configuration properties for the SFTP data provider;
    1. sftp_zlip_compression.properties :  effects packet compression during transfer by SFTP data provider.
    2. sftp_cipher_aes128-ctr.properties : effects Cipher used by SFTP data provider.
  • The sftp_zlip_compression.properties is referred to by the protocol fragment protocol_fragment_sftp@sftp-uk.sos using the configuration_files option, thus the packet compression properties will only be applicable to the transfers using protocol fragment protocol_fragment_sftp@sftp-uk.sos, e.g. CopyLocal2SFTPUKSOS.

  • Similarly the sftp_cipher_aes128-ctr.properties is referred to by the protocol fragment protocol_fragment_sftp@sftp-japan.sos using the configuration_files option, thus the cipher aes128-ctr will only be applicable to the transfers using the protocol fragment protocol_fragment_sftp@sftp-japan.sos, e.g. CopySFTPJapanSOS2Local.

  • At run-time the YADE will automatically apply applicable properties to respective data provider, e.g. SFTP properties to the JSch data provider and SMB properties to the JCifs data provider.

References

Change Management References

Loading
T Key Linked Issues Fix Version/s Status P Summary Updated
Feature YADE-403 YADE-400 1.11 Released Minor Consider configuration files for data provider Mar 20, 2017
Feature YADE-400 YADE-403 , YADE-397 , YADE-401 , YADE-468 1.11 Released Minor Consider Java property files for data provider Jan 16, 2018

 

  • No labels