Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Introduction
The JADE profiles can be cascaded or included by other profiles. This feature enable to create generic profile fragments, i.e. server connection settings, background service etc.
The other JADE profiles then can include base such fragments. The cascaded profiles enable the users to create generic profile fragments. The fragments can be included as a target settings or source settings, thus the same server host can be configured as source or target without duplicating the server settings i.e. fragment.
Managing settings in one profile
JADE settings managed in one profile
Code Block |
---|
[copy_localhost2server_with_cs] file_spec = .* operation = copy verbose = 9 ;; source_protocol = local source_host = localhost source_dir = ${TEMP}/source source_make_dirs = true ;; target_use_credential_Store = true target_CredentialStore_FileName = C:\Program Files\sos-berlin.com\jobscheduler.1.6.4043\djsmp02_4445\examples\keepassX-test.kdb target_CredentialStore_password = testing target_CredentialStore_KeyPath = sos/server/mp.sos ;; target_dir = /home/test/inbound target_make_dirs = true target_protocol = ftp target_transfer_mode = ascii |
Managing settings in cascaded profiles with
...
fragments
JADE settings managed with cascaded profiles
Code Block |
---|
[Keepass_DataBase] use_credential_Store = true CredentialStore_FileName = .\examples\keepassX-test.kdb CredentialStore_password = testing [keepass_mp_ftp] CredentialStore_KeyPath = sos/server/mp.sos protocol = ftp [localhost_default] protocol = local host=localhost [copy_localhost2server_with_cs2] file_spec = .* operation = copy verbose = 9 ;; source_include = localhost_default source_dir = ${TEMP}/source source_make_Dirs = true ;; target_include = Keepass_DataBase, keepass_mp_ftp target_dir = /home/test/inbound target_make_dirs = true target_transfer_mode = ascii |
JADE profile from a settings file
The jade_settings.ini file can be called from JITL jobs and from JADE CLI, thus provide providing a single source of for file transfer settings to JobScheduler JITL Jobs and to command line batch applications.
JobScheduler Job jade_copy_localhost2server_with_cs
...
The JobScheduler jade_copy_localhost2server_with_cs.job.xml JITL job can be configured with two parameters - profile and settings:
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="ISO-8859-1"?>
<job title="Localhost to FTP server copy (API Job for JobScheduler Advanced Data Exchange)" order="no" name="jade_copy_localhost2server_with_cs">
<settings >
<log_level ><![CDATA[debug9]]></log_level>
</settings>
<description >
<include file="jobs/jadeJob.xml"/>
</description>
<params >
<param name="profile" value="copy_localhost2server_with_cs"/>
<param name="settings" value="${SCHEDULER_HOME}/examples/jade_settings.ini"/>
</params>
<script language="java" java_class="sos.scheduler.jade.JadeJob"/>
<run_time />
</job>
|
JADE Command Line Interface (CLI)
...
The jade_settings.ini profiles can be called from JobScheduler JITL job or from used by the JADE CLI client.
See See the JADE CLI client example below.
...